Remove SheetType.DualIndexed from voxel rendering.

This commit is contained in:
Paul Chote
2016-04-10 15:13:35 -04:00
parent 7c67b10d28
commit b68fee9521
3 changed files with 22 additions and 14 deletions

View File

@@ -15,7 +15,8 @@ void main()
if (color.a < 0.01)
discard;
vec4 normal = (2.0 * texture2D(Palette, vec2(dot(x, vNormalsMask), PaletteRows.y)) - 1.0);
vec4 y = texture2D(DiffuseTexture, vTexCoord.pq);
vec4 normal = (2.0 * texture2D(Palette, vec2(dot(y, vNormalsMask), PaletteRows.y)) - 1.0);
vec3 intensity = AmbientLight + DiffuseLight * max(dot(normal, LightDirection), 0.0);
gl_FragColor = vec4(intensity * color.rgb, color.a);
}