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_indexas a slab id. Theinstance_indexis theidof aPrimitiveDescriptor. ThePrimitiveDescriptorcontains anArrayofVertexs as its mesh, theIds of aMaterialDescriptorandCameraDescriptor, and TRS transforms. Thevertex_indexis the index of aVertexwithin thePrimitiveDescriptor’sverticesArray. - slabbed_
vertices - This shader uses the
instance_indexas a slabId. Theinstance_indexis theIdof anArrayofVertexs. Thevertex_indexis the index of aVertexwithin theArray. - slabbed_
vertices_ no_ instance - This shader uses the vertex index as a slab
Id. TheIdis used to read the vertex from the slab. The vertex’s position and color are written to the output.