Explorar el Código

ShaderChunk: Clearer sheen code. https://github.com/mrdoob/three.js/pull/23069#issuecomment-999982264

Mr.doob hace 4 años
padre
commit
820a605fdf
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/renderers/shaders/ShaderLib/meshphysical.glsl.js

+ 2 - 2
src/renderers/shaders/ShaderLib/meshphysical.glsl.js

@@ -177,9 +177,9 @@ void main() {
 
 	#ifdef USE_SHEEN
 
-		float sheen = max3( material.sheenColor );
+		float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
 
-		outgoingLight = outgoingLight * ( 1.0 - 0.157 * sheen ) + sheenSpecular;
+		outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;
 
 	#endif
 

粤ICP备19079148号