Explorar o código

WebGPURenderer: fix `D_BlinnPhong` (#28199)

* WebGPURenderer: fix `D_BlinnPhong`

* fix: correction
susiwen8 %!s(int64=2) %!d(string=hai) anos
pai
achega
1780cc5466
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/nodes/functions/PhongLightingModel.js

+ 1 - 1
examples/jsm/nodes/functions/PhongLightingModel.js

@@ -12,7 +12,7 @@ const G_BlinnPhong_Implicit = () => float( 0.25 );
 
 const D_BlinnPhong = tslFn( ( { dotNH } ) => {
 
-	return shininess.mul( 0.5 / Math.PI ).add( 1.0 ).mul( dotNH.pow( shininess ) );
+	return shininess.mul( float( 0.5 ) ).add( 1.0 ).mul( float( 1 / Math.PI ) ).mul( dotNH.pow( shininess ) );
 
 } );
 

粤ICP备19079148号