Less yellow light
This commit is contained in:
parent
49e814d1bc
commit
ce7f4f66c5
2
index.js
2
index.js
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user