Commit graph

10 commits

Author SHA1 Message Date
4d61d05f4d A few misc cleanup things
- Render normals every frame for now
- Pass 3x3 normal matrix as the top-left 3x3 submatrix of the viewModel matrix
- Slightly darken the light
2018-11-20 17:31:18 -07:00
296af144ce Get face normals rendering 2018-11-20 17:13:31 -07:00
a02726404c Pass in the faceNormals 2018-11-20 11:24:43 -07:00
952204a5b6 Pass the normal matrix through and multiply the normal by it 2018-11-20 11:24:28 -07:00
764b772fd9 Scale the normal line down 2018-11-19 21:34:44 -07:00
c3cc0c7fe4 Render normals at each vertex 2018-11-19 13:17:06 -07:00
bd696eac1c Write a quick pair of shaders for rendering normals 2018-11-19 11:27:21 -07:00
3462fa2458 Update heights of plane geometry in a shader kernel 2018-11-11 19:50:43 -05:00
e5678f291b Pass normals through to the fragment shader 2018-11-10 21:46:32 -05:00
8e2a873edf Move shader files to Shaders group 2018-11-10 09:54:17 -05:00
Renamed from Terrain2/Shaders.metal (Browse further)