basicMaterial3DVertex

View sourcebasicMaterial3DVertex: string

Built-in WebGL 2 vertex-shader source for a 3D BasicMaterial pass.

The shader expects a mesh’s position3d attribute, a Camera uniform block with view and projection matrices, and a separate model matrix. It writes clip-space position with camera.projection * camera.view * model. It declares no varyings and does not perform lighting or material-color work.

Pass this source as the vertex3d option of WebglMaterialPlugin and pair it with basicMaterial3DFragment as the fragment3d source.

Default: ...