Less yellow light

This commit is contained in:
Paul Mathieu 2021-12-11 15:17:53 -08:00
parent 49e814d1bc
commit ce7f4f66c5

View File

@ -23,7 +23,7 @@ void main() {
lowp vec3 normal = mat3(modelview) * aNormal;
lowp vec3 lightDirection = - normalize(mat3(uView) * vec3(1.0, -0.3, -0.8));
lowp float diffuseAmount = max(dot(lightDirection, normal), 0.0);
lowp vec3 ambiant = vec3(0.7, 0.7, 0.2);
lowp vec3 ambiant = 0.4 * vec3(1.0, 1.0, 0.9);
vLighting = ambiant + vec3(1.0, 1.0, 1.0) * diffuseAmount;
vTextureCoord = aTextureCoord;