class Prism::Systems::TerrainRenderer
- Prism::Systems::TerrainRenderer
- Reference
- Object
Defined in:
prism/stdlib/systems/render_system/terrain_renderer.crConstructors
Instance Method Summary
- #disable_culling
- #disable_wires
- #enable_culling
- #enable_wires
-
#load_model_matrix(transform : Prism::Transform)
Prepares the shader for rendering the actual entity
-
#prepare_terrain(entity : Crash::Entity)
Prepares the shader before rendering a batch of
TexturedModel
s -
#render(terrains : Array(Crash::Entity))
Renders batches of
TexturedModel
s at a time for increased performance -
#unbind_textured_model
Cleans up after rendering a batch of
TexturedModel
s
Constructor Detail
Instance Method Detail
def load_model_matrix(transform : Prism::Transform)
#
Prepares the shader for rendering the actual entity
def prepare_terrain(entity : Crash::Entity)
#
Prepares the shader before rendering a batch of TexturedModel
s
def render(terrains : Array(Crash::Entity))
#
Renders batches of TexturedModel
s at a time for increased performance