mirror of
https://github.com/FMS-Cat/condition.git
synced 2025-08-14 01:33:58 +02:00
performance: IBLLUT also can do NEAREST BufferRenderTarget
This commit is contained in:
@@ -7,6 +7,7 @@ import { Material } from '../heck/Material';
|
|||||||
import { Quad } from '../heck/components/Quad';
|
import { Quad } from '../heck/components/Quad';
|
||||||
import { Swap } from '@fms-cat/experimental';
|
import { Swap } from '@fms-cat/experimental';
|
||||||
import { dummyRenderTarget } from '../globals/dummyRenderTarget';
|
import { dummyRenderTarget } from '../globals/dummyRenderTarget';
|
||||||
|
import { gl } from '../globals/canvas';
|
||||||
import { quadGeometry } from '../globals/quadGeometry';
|
import { quadGeometry } from '../globals/quadGeometry';
|
||||||
import { vdc } from '../utils/vdc';
|
import { vdc } from '../utils/vdc';
|
||||||
import iblLutFrag from '../shaders/ibl-lut.frag';
|
import iblLutFrag from '../shaders/ibl-lut.frag';
|
||||||
@@ -31,11 +32,13 @@ export class IBLLUT {
|
|||||||
width: IBLLUT_SIZE,
|
width: IBLLUT_SIZE,
|
||||||
height: IBLLUT_SIZE,
|
height: IBLLUT_SIZE,
|
||||||
name: process.env.DEV && 'IBLLUT/swap0',
|
name: process.env.DEV && 'IBLLUT/swap0',
|
||||||
|
filter: gl.NEAREST,
|
||||||
} ),
|
} ),
|
||||||
new BufferRenderTarget( {
|
new BufferRenderTarget( {
|
||||||
width: IBLLUT_SIZE,
|
width: IBLLUT_SIZE,
|
||||||
height: IBLLUT_SIZE,
|
height: IBLLUT_SIZE,
|
||||||
name: process.env.DEV && 'IBLLUT/swap1',
|
name: process.env.DEV && 'IBLLUT/swap1',
|
||||||
|
filter: gl.NEAREST,
|
||||||
} ),
|
} ),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user