Module render

Module render 

Source
Expand description

Turning 3D geometry into raster images.

This module constitutes the core 3D rendering pipeline of retrofire. It contains code for clipping, transforming, shading, texturing, rasterizing, and outputting basic geometric shapes such as triangles.

Modules§

batch
Builder for setting up geometry for rendering.
cam
Cameras and camera transforms.
clip
Clipping geometric shapes against planes.
ctx
Rendering context and parameters.
raster
Translation of vector shapes into discrete pixels in the framebuffer.
shader
Fragment and vertex shaders.
stats
Rendering statistics.
target
Render targets such as framebuffers.
tex
Textures and texture samplers.

Structs§

Model
Model space coordinate basis.
Ndc
NDC space coordinate basis (normalized device coordinates).
Screen
Screen space coordinate basis.
View
View (camera) space coordinate basis.
World
World space coordinate basis.

Traits§

Shader
Alias for combined vertex+fragment shader types

Functions§

render
Renders the given triangles into target.

Type Aliases§

ModelToProj
Mapping from model space to view space.
ModelToView
Mapping from model space to view space.
ModelToWorld
NdcToScreen
Mapping from NDC space to screen space.
ViewToProj
Mapping from view space to projective space.
WorldToView