Home
API reference

cloudLayerVertexShader

strata-game-library/shaders

strata-game-library/shaders


strata-game-library/shaders / cloudLayerVertexShader

Variable: cloudLayerVertexShader

const cloudLayerVertexShader: "\n varying vec2 vUv;\n varying vec3 vWorldPosition;\n \n void main() {\n vUv = uv;\n vec4 worldPos = modelMatrix * vec4(position, 1.0);\n vWorldPosition = worldPos.xyz;\n gl_Position = projectionMatrix * viewMatrix * worldPos;\n }\n"

Defined in: clouds.ts:9