Expand description
A tutorial module for the renderling crate.
Functions§
- tutorial_
implicit_ isosceles_ vertex - Simple vertex shader with an implicit isosceles triangle.
- tutorial_
passthru_ fragment - Simple fragment shader that writes the input color to the output color.
- tutorial_
slabbed_ renderlet - This shader uses the
instance_index
as a slabId
. Theinstance_index
is theId
of aRenderlet
. TheRenderlet
contains anArray
ofVertex
s as its mesh, theId
s of aMaterial
andCamera
, and TRS transforms. Thevertex_index
is the index of aVertex
within theRenderlet
’svertices
Array
. - tutorial_
slabbed_ vertices - This shader uses the
instance_index
as a slabId
. Theinstance_index
is theId
of anArray
ofVertex
s. Thevertex_index
is the index of aVertex
within theArray
. - tutorial_
slabbed_ vertices_ no_ instance - This shader uses the vertex index as a slab
Id
. TheId
is used to read the vertex from the slab. The vertex’s position and color are written to the output.