Spaces:
Running
Running
File size: 560 Bytes
8194362 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import { Color } from 'three'
import simpleVertexCode from '../shaders/simpleVertex.glsl'
import luminosityHighPassCode from '../shaders/luminosityHighPass.glsl'
export default {
shaderID: 'luminosityHighPass',
uniforms: {
tDiffuse: { type: 't', value: null },
luminosityThreshold: { type: 'f', value: 1.0 },
smoothWidth: { type: 'f', value: 1.0 },
defaultColor: { type: 'c', value: new Color(0x000000) },
defaultOpacity: { type: 'f', value: 0.0 }
},
vertexShader: simpleVertexCode,
fragmentShader: luminosityHighPassCode
}
|