M3ShadowMap class

Shadow map renderer for real-time shadows from directional lights.

Renders the scene from the light's perspective to generate a depth texture.

Constructors

M3ShadowMap(int width, int height)

Properties

depthTex → M3Texture
no setter
gl → RenderingContext
no setter
hashCode → int
The hash code for this object.
no setterinherited
mapH → int
no setter
mapW → int
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

debugDrawDepth(double x, double y, double width, double height) → void
Draw shadow depth map for debugging
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderDepth(M3Scene scene, M3DirectionalLight light) → void
Render depth map from directional light's perspective.
renderSpotDepths(M3Scene scene, List<M3SpotLight> lights) → void
Render depth map for multiple spotlights into atlas.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited