diff --git a/examples/jsm/nodes/functions/PhongLightingModel.js b/examples/jsm/nodes/functions/PhongLightingModel.js index d3fef81fb2d422..c16e72917768e0 100644 --- a/examples/jsm/nodes/functions/PhongLightingModel.js +++ b/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 ) ); } );