Expand description
Shader examples to help get you started
Constantsยง
- VERTEX
- simple vertex shader. uniform requires
model: Mat4
,perspective: Mat4
(useMat4::view_matrix_3d()
for 3d orMat4::view_matrix_2d()
for 2d/orthographic) andcamera: Mat4
(inverse camera matrix. useMat4::from_inverse_transform()
or call.inverse()
before feeding the matrix into to the shader)