mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
Fix fragment shader.
This commit is contained in:
parent
9c22f91030
commit
a1b4285c5c
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ static void Init (void)
|
|||
" // Compute dot product of light direction and normal vector\n"
|
||||
" float dotProd = max (dot (lightPos, normalize (normal)), 0.0);\n"
|
||||
" // Compute diffuse and specular contributions\n"
|
||||
#if 0
|
||||
#if 1
|
||||
" gl_FragColor = diffuse * dotProd + specular * pow (dotProd, 20.0);\n"
|
||||
#elif 1 /* test IF/ELSE/ENDIF */
|
||||
" if (normal.y > 0.0) { \n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue