class Prism::Systems::TerrainRenderer

Defined in:

prism/stdlib/systems/render_system/terrain_renderer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(shader : Prism::TerrainShader) #

[View source]

Instance Method Detail

def disable_culling #

[View source]
def disable_wires #

[View source]
def enable_culling #

[View source]
def enable_wires #

[View source]
def load_model_matrix(transform : Prism::Transform) #

Prepares the shader for rendering the actual entity


[View source]
def prepare_terrain(entity : Crash::Entity) #

Prepares the shader before rendering a batch of TexturedModels


[View source]
def render(terrains : Array(Crash::Entity)) #

Renders batches of TexturedModels at a time for increased performance


[View source]
def unbind_textured_model #

Cleans up after rendering a batch of TexturedModels


[View source]