File tree 3 files changed +35
-7
lines changed
3 files changed +35
-7
lines changed Original file line number Diff line number Diff line change 1
- # fft-2d
1
+ # Ocean generator
2
+ (in development)
3
+
4
+ [ Demo] ( https://stackblitz.com/edit/fft-2d )
5
+
6
+ Ocean Water simulation based on Phillips spectrum and fourier transform.
7
+
8
+ ## Featues:
9
+ - Runs in web-browser
10
+ - Weather & waves control settings
11
+ - 3 distinct cascades for tweak
12
+
13
+ ### todo:
14
+ - [ ] Treemap, Halfplane renderer(s)
15
+ - [ ] Free motion controller
16
+ - [ ] Water shader
17
+ - [ ] Weather conditions presets
18
+ - [ ] Import / Export
19
+ - [ ] Other spectrums
20
+ - [ ] Skybox
21
+ - [ ] Optimisations
22
+ - [ ] Wrap up in package
23
+ - [ ] Make plugins for third-party web-engines (Tree.js, Babylon, ...)
2
24
3
- [ Edit on StackBlitz ⚡️] ( https://stackblitz.com/edit/fft-2d )
Original file line number Diff line number Diff line change 1
1
< div class ="container ">
2
- < canvas id ="viewport " width ="800 " height ="600 "> </ canvas >
2
+ < canvas id ="viewport " width ="1200 " height ="800 "> </ canvas >
3
3
< aside id ="gui "> </ aside >
4
4
</ div >
Original file line number Diff line number Diff line change 2
2
font-family : Calibri;
3
3
}
4
4
5
+
6
+ : root {
7
+ --viewport-width : 1200px ;
8
+ --viewport-height : 800px ;
9
+ }
10
+
11
+
5
12
canvas {
6
- width : 800 px ;
7
- height : 600 px ;
13
+ width : var ( --viewport-width ) ;
14
+ height : var ( --viewport-height ) ;
8
15
box-sizing : content-box;
9
- min-width : 800 px ;
16
+ min-width : var ( --viewport-width ) ;
10
17
background-color : black;
11
18
margin : 0 auto;
12
19
}
13
20
14
21
.container {
15
22
display : grid;
16
- grid-template-columns : 800 px 1fr ;
23
+ grid-template-columns : var ( --viewport-width ) 1fr ;
17
24
grid-template-rows : 1fr ;
18
25
grid-gap : 16px ;
19
26
}
You can’t perform that action at this time.
0 commit comments