better
This commit is contained in:
parent
5210e22684
commit
64de49cf99
3 changed files with 18 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
@ -59,7 +59,7 @@ float ShadowCoef(void){
|
|||
shadow_coef -= 0.2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return shadow_coef;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue