scene_renderer module

class scene_renderer.SceneRenderer(app)[source]

Bases: object

Handle multi-pass rendering including shadow mapping and main scene rendering.

Coordinates complete rendering pipeline with depth buffer and final output.

destroy()[source]

Release framebuffer resources.

Clean up depth framebuffer when renderer is destroyed.

main_render()[source]

Render main scene with textures and lighting.

Uses screen framebuffer and renders all objects plus skybox.

render()[source]

Execute complete rendering pipeline.

Updates scene, performs shadow pass, then renders main scene.

render_shadow()[source]

Render depth buffer for shadow mapping.

Clears and uses depth framebuffer, then renders all objects for shadow calculation.