File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ void main(void){
5050 for (int j = 0 ; j < 8 ; j++ ) {
5151 if (uDirectionalLightCount == j) break ;
5252 vec3 dir = uLightingDirection[j];
53- float directionalLightWeighting = max (dot (vertexNormal, dir), 0.0 );
53+ float directionalLightWeighting = max (dot (vertexNormal, - dir), 0.0 );
5454 directionalLightFactor += uDirectionalColor[j] * directionalLightWeighting;
5555 }
5656
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ float phongSpecular(
4646float lambertDiffuse(
4747 vec3 lightDirection,
4848 vec3 surfaceNormal) {
49- return max (0.0 , dot (lightDirection, surfaceNormal));
49+ return max (0.0 , dot (- lightDirection, surfaceNormal));
5050}
5151
5252LightResult light(vec3 lightVector) {
You can’t perform that action at this time.
0 commit comments