download
raw
597 Bytes
const CopyShader = {
uniforms: {
tDiffuse: { value: null },
opacity: { value: 1 }
},
vertexShader: (
/* glsl */
`
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
`
),
fragmentShader: (
/* glsl */
`
uniform float opacity;
uniform sampler2D tDiffuse;
varying vec2 vUv;
void main() {
vec4 texel = texture2D( tDiffuse, vUv );
gl_FragColor = opacity * texel;
}
`
)
};
export {
CopyShader
};
//# sourceMappingURL=CopyShader.js.map

Xet Storage Details

Size:
597 Bytes
·
Xet hash:
9921c02baaa41d5ff05f28296b7bd827d76e33193e611fc74e6e753eff58da46

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.