瀏覽代碼

WebGPURenderer: PMREMGenerator use `textureGrad` (#28181)

* Use textureGrad

* add note
sunag 1 年之前
父節點
當前提交
09f9fff05d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/nodes/pmrem/PMREMUtils.js

+ 1 - 1
examples/jsm/nodes/pmrem/PMREMUtils.js

@@ -237,7 +237,7 @@ const bilinearCubeUV = tslFn( ( [ envMap, direction_immutable, mipInt_immutable,
 	uv.x.mulAssign( CUBEUV_TEXEL_WIDTH );
 	uv.y.mulAssign( CUBEUV_TEXEL_HEIGHT );
 
-	return envMap.uv( uv );
+	return envMap.uv( uv ).grad( vec2(), vec2() ); // disable anisotropic filtering
 
 } );