Header menu logo Mibo.Raylib

Mibo.Elmish.Graphics2D.Lighting Namespace

Type/Module Description

AmbientLight2D (Module)

Convenience builders for AmbientLight2D.

AmbientLight2D (Type)

Global ambient light applied to all lit sprites.

DirectionalLight2D (Module)

Convenience builders for DirectionalLight2D.

DirectionalLight2D (Type)

A directional light (sun, moon) with parallel rays.

GridOccluders

Helpers for generating shadow-casting occluders from grid-based levels.

LightCommands

Factory functions for lighting-related render commands. Each function mutates the LightContext2D immediately (during view population) and returns a Command2D for layer ordering.

LightContext2D

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.

LightDraw

Pipe-friendly lighting draw functions. Each takes a RenderBuffer2D as the last argument, adds the command, and returns the buffer for chaining.

LitShader

Embedded GLSL shaders for the built-in lit-sprite pipeline with SDF shadow raymarching.

Occluder2D (Module)

Convenience builders for Occluder2D.

Occluder2D (Type)

A shadow-casting occluder defined as a line segment.

Particle2D (Module)

Convenience builders for Particle2D.

Particle2D (Type)

A single 2D particle rendered as a textured quad with optional sprite-sheet source rect.

ParticleCommands

Factory functions for particle render commands.

ParticleDraw

Pipe-friendly wrappers for particle drawing.

ParticleSimulation

Helpers for particle simulation. Called in the user's update function.

PointLight2D (Module)

Convenience builders for PointLight2D.

PointLight2D (Type)

A radial point light (torch, lamp, explosion).

Type something to start searching.