Skip to content

Commit 8b7f909

Browse files
committed
PMREMGenerator: Use highp precision in GGX VNDF shader (#32225)
1 parent 0ea6b93 commit 8b7f909

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extras/PMREMGenerator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const EXTRA_LOD_SIGMA = [ 0.125, 0.215, 0.35, 0.446, 0.526, 0.582 ];
3636
const MAX_SAMPLES = 20;
3737

3838
// GGX VNDF importance sampling configuration
39-
const GGX_SAMPLES = 512;
39+
const GGX_SAMPLES = 256;
4040

4141
const _flatCamera = /*@__PURE__*/ new OrthographicCamera();
4242
const _clearColor = /*@__PURE__*/ new Color();
@@ -817,8 +817,8 @@ function _getGGXShader( lodMax, width, height ) {
817817

818818
fragmentShader: /* glsl */`
819819
820-
precision mediump float;
821-
precision mediump int;
820+
precision highp float;
821+
precision highp int;
822822
823823
varying vec3 vOutputDirection;
824824

0 commit comments

Comments
 (0)