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
This commit is contained in:
Eryn Wells 2018-11-20 17:31:07 -07:00
parent 08094b4302
commit 4d61d05f4d
2 changed files with 5 additions and 9 deletions

View file

@ -49,7 +49,7 @@ vertex ColorInOut vertexShader(Vertex in [[stage_in]],
float3 lightDirection = -eyeCoords.xyz;
float lightDotNormal = dot(normal, lightDirection);
out.color = float4(abs(lightDotNormal) * float3(0.3), 1.0);
out.color = float4(abs(lightDotNormal) * float3(0.2), 1.0);
out.texCoord = in.texCoord;