2
0
Эх сурвалжийг харах

WebGPURenderer: fix `D_BlinnPhong` (#28199)

* WebGPURenderer: fix `D_BlinnPhong`

* fix: correction
susiwen8 1 жил өмнө
parent
commit
1780cc5466

+ 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 ) );
 
 } );