shaderVertexSource
constshaderVertexSource: “varying vec2 vUv;\nvarying vec3 vWorldPosition;\nvoid main() {\n vUv = uv;\n vec4 worldPosition = modelMatrix * vec4(position, 1.0);\n vWorldPosition = worldPosition.xyz;\n gl_Position = projectionMatrix * viewMatrix * worldPosition;\n}\n”
Defined in: packages/engine/src/render/shader.ts:9
The vertex shader every Shader runs. It hands the mesh’s UVs to the
fragment as vUv, and the point’s place in the world as vWorldPosition.