OpenGL2: Remove specular ambient.
This commit is contained in:
parent
42dee17663
commit
63e45fab9a
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ void main()
|
||||||
reflectance = CalcDiffuse(diffuse.rgb, EH, NH, roughness);
|
reflectance = CalcDiffuse(diffuse.rgb, EH, NH, roughness);
|
||||||
|
|
||||||
gl_FragColor.rgb = lightColor * reflectance * (attenuation * NL);
|
gl_FragColor.rgb = lightColor * reflectance * (attenuation * NL);
|
||||||
gl_FragColor.rgb += ambientColor * (diffuse.rgb + specular.rgb);
|
gl_FragColor.rgb += ambientColor * diffuse.rgb;
|
||||||
|
|
||||||
#if defined(USE_CUBEMAP)
|
#if defined(USE_CUBEMAP)
|
||||||
reflectance = EnvironmentBRDF(roughness, NE, specular.rgb);
|
reflectance = EnvironmentBRDF(roughness, NE, specular.rgb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue