This commit is contained in:
Nishi 2026-02-02 19:26:33 +09:00
commit d0f9cf24dc
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ vec4 PhongShading(void)
vec3 L = normalize(gl_LightSource[0].position.xyz-vPos.xyz);
if(gl_LightSource[0].position.w < 0.5){
L = -normalize(gl_LightSource[0].position.xyz);
L = normalize(gl_LightSource[0].position.xyz);
}
vec4 ambient = gl_FrontLightProduct[0].ambient;