Commit graph

27 commits

Author SHA1 Message Date
6c0792fc9c Implement Emily's algorithm for computing vertex normals 2018-11-22 10:53:02 -07:00
3cd9aca62b Schedule the vertex normal update kernel 2018-11-22 09:35:01 -07:00
907a0845a7 Factor out per-frame stuff into a PerFrameObject<T> class; use it for the rendering Uniforms 2018-11-22 08:29:14 -07:00
65ffec18e9 A couple small random tweaks while I play with lighting 2018-11-22 08:12:15 -07:00
59697dbb51 Per-pixel shading in the fragment shader instead of per-vertex in the vertex shader 2018-11-20 20:14:43 -07:00
296af144ce Get face normals rendering 2018-11-20 17:13:31 -07:00
43e42f5374 Get face normals updated 2018-11-19 21:52:53 -07:00
c3cc0c7fe4 Render normals at each vertex 2018-11-19 13:17:06 -07:00
95fe543efc Fix progress accounting: make it out of 1 instead of out of 3 tasks 2018-11-19 10:57:10 -07:00
7ff2d3ed6e Move terrain update encoding to Terrain type 2018-11-19 10:53:33 -07:00
2b2539d7df Implement progress tracking 2018-11-18 21:15:20 -07:00
6a86368d3a Include the normals in the generated Plane geometry 2018-11-10 21:10:03 -05:00
6a43c10b9f Add a roughness control 2018-11-10 17:52:37 -05:00
4a236bf6d6 Instantiate a DiamondSquare generator 2018-11-10 17:06:14 -05:00
a58241cd13 Rename Algorithm -> TerrainGenerator 2018-11-10 13:16:22 -05:00
bd9cba2886 Get rid of an unused static let 2018-11-04 14:26:15 -05:00
8ffb0a1cfe Generate terrain on a keypress 2018-11-04 14:19:02 -05:00
55a134882d Proof of concept for Algorithm objects
Next up compute kernel dispatch!
2018-11-04 13:44:47 -05:00
96730ecd41 Use a fixed size 512x512 texture for the height map
This will make implementing other algorithms easier. :D
2018-11-04 11:34:25 -05:00
af5e5a6123 Generate some random heights to fill the height map texture and ... it works! 2018-11-04 08:25:01 -05:00
4803620d4b Read texture data from the heights texture 2018-11-04 08:06:48 -05:00
753e8eb311 Give the grid coordinate vertex attribute a nice name 2018-11-03 16:35:46 -04:00
a5d08d6974 Over-zealous multiline edit 2018-11-03 16:26:55 -04:00
f1517a2166 Rename an unnecessarily long variable 2018-11-03 16:25:57 -04:00
dac8f24568 Add grid coordinate argument encoding stuff and a texture to hold heights 2018-11-03 16:25:19 -04:00
a5c86f9c31 Doc comments! 2018-11-03 16:02:35 -04:00
5fa89d1e47 Extract Terrain into its own class 2018-11-03 15:59:11 -04:00