starry / backend /libs /three /renderers /shaders /ShaderChunk /envmap_pars_vertex.glsl.js
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
export default /* glsl */ `
#ifdef USE_ENVMAP
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )
#define ENV_WORLDPOS
#endif
#ifdef ENV_WORLDPOS
varying vec3 vWorldPosition;
#else
varying vec3 vReflect;
uniform float refractionRatio;
#endif
#endif
`;