Header menu logo Mibo

Mibo.Elmish.Graphics2D.Lighting Namespace

Type/Module Description

AmbientLight2D (Module)

Convenience builders for AmbientLight2D.

AmbientLight2D (Module)

Convenience builders for AmbientLight2D.

AmbientLight2D (Type)

Global ambient light applied to all lit sprites.

AmbientLight2D (Type)

Ambient light for 2D scenes.

DirectionalLight2D (Module)

Convenience builders for DirectionalLight2D.

DirectionalLight2D (Module)

Convenience builders for DirectionalLight2D.

DirectionalLight2D (Type)

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

DirectionalLight2D (Type)

A directional light for 2D scenes (e.g. sunlight).

GridOccluders (Module)

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

GridOccluders (Module)

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

LightCommands (Module)

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

LightCommands (Module)

Factory functions that create lighting Command2D values. Light-accumulation commands mutate the LightContext2D eagerly and return a NoopLight purely for layer-sort ordering.

LightContext2D (Type)

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.

LightContext2D (Type)

Central GPU-state holder for 2D lighting. Owns two compiled effects (plain and normal-mapped) loaded from embedded .mgfx resources via ShaderLoader.

LightDraw (Module)

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

LightDraw (Module)

Pipe-friendly DSL for lighting commands. Each function 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 (Module)

Convenience builders for Occluder2D.

Occluder2D (Type)

A shadow-casting occluder defined as a line segment.

Occluder2D (Type)

A line segment that occludes light (for 2D SDF soft shadows).

Particle2D (Module)

Convenience builders for Particle2D.

Particle2D (Module)

Convenience builders for Particle2D.

Particle2D (Type)

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

Particle2D (Type)

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

ParticleCommands (Module)

Factory functions for particle render commands.

ParticleCommands (Module)

Factory functions for particle render commands.

ParticleDraw (Module)

Pipe-friendly wrappers for particle drawing.

ParticleDraw (Module)

Pipe-friendly wrappers for particle drawing.

ParticleSimulation (Module)

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

ParticleSimulation (Module)

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

PointLight2D (Module)

Convenience builders for PointLight2D.

PointLight2D (Module)

Convenience builders for PointLight2D.

PointLight2D (Type)

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

PointLight2D (Type)

A point light for 2D scenes with radius-based falloff.

Type something to start searching.