Browse Source

Fix diffuse shader code of Specular-Glossiness

Takahiro 8 years ago
parent
commit
8360b53264
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl

+ 1 - 1
src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl

@@ -1,7 +1,7 @@
 PhysicalMaterial material;
 PhysicalMaterial material;
 
 
 #ifdef STANDARD_SG
 #ifdef STANDARD_SG
-	material.diffuseColor = diffuseColor.rgb * ( 1.0 - max( max( specular2Factor.r, specular2Factor.g ), specular2Factor.b ) );
+	material.diffuseColor = diffuseColor.rgb;
 	material.specularRoughness = clamp( 1.0 - glossinessFactor, 0.04, 1.0 );
 	material.specularRoughness = clamp( 1.0 - glossinessFactor, 0.04, 1.0 );
 	material.specularColor = specular2Factor.rgb;
 	material.specularColor = specular2Factor.rgb;
 #else
 #else