Module tutorial

Source
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 slab Id. The instance_index is the Id of a Renderlet. The Renderlet contains an Array of Vertexs as its mesh, the Ids of a Material and Camera, and TRS transforms. The vertex_index is the index of a Vertex within the Renderlet’s vertices Array.
tutorial_slabbed_vertices
This shader uses the instance_index as a slab Id. The instance_index is the Id of an Array of Vertexs. The vertex_index is the index of a Vertex within the Array.
tutorial_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.