Default: ...
Variable
basicVertex
View sourcebasicVertex: stringWebGL 2 vertex-shader source for a basic-material pipeline.
The shader expects position3d, normal3d, uv, and color attributes.
It transforms position3d with the Camera block’s view and projection
matrices plus model, then forwards uv as v_uv and color as v_color
for a matching fragment stage such as basicFragment. normal3d is
declared for the mesh interface but is not used.
The Camera block contains view and projection. model is declared as
mat3x4, converted with mat4(model), and transposed in the position
calculation. The source can be supplied as part of a custom
WebglMaterialPlugin shader pair.
