c3d.pipe
the pipe module is used to modify and manipulate the rendering pipeline by adding or changing functions inside of it
set(...) | allows modifying the rendering pipeline, including changing order and adding your own already added types to it |
---|---|
add_type(name, the) | adds a step into the rendering pipeline (unused by default) |
vertex() | returns the inicializer step of the pipeline |
vertex_shader() | returns the default vertex shader step of the pipeline |
triangle_asm() | returns the default triangle_asm step of the pipeline |
geometry_shader() | returns the default geometry shader step of the pipeline |
- set(...)Source
allows modifying the rendering pipeline, including changing order and adding your own already added types to it
Parameters
- table the table containing the function to be set as the pipeline steps
Or
- function the functions to be set as the pipeline steps
Or
- string a special string containing the name of the rendering steps separated by
->
Usage
set the rendering pipeline to default
function c3d.load() c3d.pipe.set("vertex -> vertex_shader -> triangle_asm -> geometry_shader") end
- add_type(name, the)Source
adds a step into the rendering pipeline (unused by default)
Parameters
- name string the name of the pipeline step
- the function function to be ran in the pipeline
- vertex()Source
returns the inicializer step of the pipeline
Returns
- function vertex inicializer pipe
- vertex_shader()Source
returns the default vertex shader step of the pipeline
Returns
- function vertex shader pipe
- triangle_asm()Source
returns the default triangle_asm step of the pipeline
Returns
- function triangle assembler pipe
- geometry_shader()Source
returns the default geometry shader step of the pipeline
Returns
- function geometry shader pipe