basicMaterial3DFragment

View sourcebasicMaterial3DFragment: string

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

The shader expects a BasicMaterial uniform block with a color value and writes output_color. It preserves the material RGB values but always sets the output alpha to 1.0; it has no texture input, lighting, or varyings.

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

Default: ...