starry / backend /libs /three /renderers /shaders /ShaderLib /background.glsl.js
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
export const vertex = /* glsl */ `
varying vec2 vUv;
uniform mat3 uvTransform;
void main() {
vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
gl_Position = vec4( position.xy, 1.0, 1.0 );
}
`;
export const fragment = /* glsl */ `
uniform sampler2D t2D;
varying vec2 vUv;
void main() {
gl_FragColor = texture2D( t2D, vUv );
#include <tonemapping_fragment>
#include <encodings_fragment>
}
`;