Hopefuly fix yet another weird behaviour on ATI gpus (take two)
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
This commit is contained in:
parent
06e15f33d0
commit
00c352f235
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ void main()
|
|||
// vec4(1.0) * (gl_LightModel.ambient + gl_LightSource[0].ambient) +
|
||||
// Diffuse * gl_FrontMaterial.diffuse;
|
||||
vec4 ambientColor = gl_LightModel.ambient + gl_LightSource[0].ambient;
|
||||
vec4 diffuseColor = gl_Color + Diffuse * gl_FrontMaterial.diffuse + ambientColor;
|
||||
//vec4 diffuseColor = gl_Color + Diffuse * gl_FrontMaterial.diffuse + ambientColor;
|
||||
vec4 diffuseColor = vec4(Diffuse) + ambientColor; //ATI workaround
|
||||
diffuseColor += specular * gl_FrontMaterial.specular;
|
||||
|
||||
// This shouldn't be necessary, but our lighting becomes very
|
||||
|
|
Loading…
Add table
Reference in a new issue