Expand description
Shaders used in the contributor intro tutorial and in WASM tests.
Functions§
- implicit_
isosceles_ vertex - Simple vertex shader with an implicit isosceles triangle.
- passthru_
fragment - Simple fragment shader that writes the input color to the output color.
- slabbed_
renderlet - This shader uses the
instance_index
as a slab id. Theinstance_index
is theid
of aPrimitiveDescriptor
. ThePrimitiveDescriptor
contains anArray
ofVertex
s as its mesh, theId
s of aMaterialDescriptor
andCameraDescriptor
, and TRS transforms. Thevertex_index
is the index of aVertex
within thePrimitiveDescriptor
’svertices
Array
. - 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
. - 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.