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 an [Array] ofVertexs as its mesh, the [Id]s of aMaterialDescriptorandCameraDescriptor, and TRS transforms. Thevertex_indexis the index of aVertexwithin thePrimitiveDescriptor’svertices[Array]. - slabbed_
vertices - This shader uses the
instance_indexas a slab [Id]. Theinstance_indexis the [Id] of an [Array] ofVertexs. Thevertex_indexis the index of aVertexwithin the [Array]. - slabbed_
vertices_ no_ instance - This shader uses the vertex index as a slab [
Id]. The [Id] is used to read the vertex from the slab. The vertex’s position and color are written to the output.