Skip to content

Commit 7218445

Browse files
author
FMS-Cat
committed
performance: IBLLUT also can do NEAREST BufferRenderTarget
1 parent b923c93 commit 7218445

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/entities/IBLLUT.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Material } from '../heck/Material';
77
import { Quad } from '../heck/components/Quad';
88
import { Swap } from '@fms-cat/experimental';
99
import { dummyRenderTarget } from '../globals/dummyRenderTarget';
10+
import { gl } from '../globals/canvas';
1011
import { quadGeometry } from '../globals/quadGeometry';
1112
import { vdc } from '../utils/vdc';
1213
import iblLutFrag from '../shaders/ibl-lut.frag';
@@ -31,11 +32,13 @@ export class IBLLUT {
3132
width: IBLLUT_SIZE,
3233
height: IBLLUT_SIZE,
3334
name: process.env.DEV && 'IBLLUT/swap0',
35+
filter: gl.NEAREST,
3436
} ),
3537
new BufferRenderTarget( {
3638
width: IBLLUT_SIZE,
3739
height: IBLLUT_SIZE,
3840
name: process.env.DEV && 'IBLLUT/swap1',
41+
filter: gl.NEAREST,
3942
} ),
4043
);
4144

0 commit comments

Comments
 (0)