Mibo.Elmish.Graphics2D.Lighting Namespace
| Type/Module | Description |
|
Convenience builders for AmbientLight2D. |
|
|
Global ambient light applied to all lit sprites. |
|
|
Convenience builders for DirectionalLight2D. |
|
|
A directional light (sun, moon) with parallel rays. |
|
|
Helpers for generating shadow-casting occluders from grid-based levels. |
|
|
Factory functions for lighting-related render commands. Each function mutates the LightContext2D immediately (during view population) and returns a Command2D for layer ordering. |
|
|
User-owned mutable context that collects lighting state each frame and uploads it to the GPU when lit sprites render. Shadows use analytic Signed Distance Field (SDF) raymarching in the pixel shader. |
|
|
Pipe-friendly lighting draw functions. Each takes a RenderBuffer2D as the last argument, adds the command, and returns the buffer for chaining. |
|
|
Embedded GLSL shaders for the built-in lit-sprite pipeline with SDF shadow raymarching. |
|
|
Convenience builders for Occluder2D. |
|
|
A shadow-casting occluder defined as a line segment. |
|
|
Convenience builders for Particle2D. |
|
|
A single 2D particle rendered as a textured quad with optional sprite-sheet source rect. |
|
|
Factory functions for particle render commands. |
|
|
Pipe-friendly wrappers for particle drawing. |
|
|
Helpers for particle simulation. Called in the user's update function. |
|
|
Convenience builders for PointLight2D. |
|
|
A radial point light (torch, lamp, explosion). |
Mibo.Raylib