~nasser/lospec-2

e4ced52c0b95fbe4689b312714f8d94b3c49a0ee — Ramsey Nasser 7 months ago 435b538
Clean up unused code, restore threshold
1 files changed, 1 insertions(+), 4 deletions(-)

M palette-pass.js
M palette-pass.js => palette-pass.js +1 -4
@@ 6,14 6,11 @@ import fragmentShader from './frag.glsl?raw'

export default function (texture) {
    const paletteSize = texture.source.data.width
    texture.minFilter = THREE.NearestFilter 
    texture.magFilter = THREE.NearestFilter

    return new ShaderPass(new THREE.ShaderMaterial({
        uniforms: {
            tDiffuse: { value: null },
            palette: { value: texture },
            threshold: { value: 0 },
            threshold: { value: 0.03 },
        },
        glslVersion: THREE.GLSL3,
        vertexShader,