Skip to main content

luma.gl

Examples

Explore interactive examples for rendering, GPU compute, data processing, and visualization.

Find examples

Search by name, topic, graphics API, or difficulty.

81 examples

Showing 81 of 81 examples

Featured examples

Showcase

10
WebGPUWebGL2HDR
Showcase

Gaussian Splat Viewer

Explore captured Gaussian scenes and the 50-million-splat Coit Tower RAD landscape.

WebGPUWebGL2HDR
Showcase

Gaussian Splats

Render progressive Gaussian splats through a WebGPU command graph or WebGL2 fallback.

WebGPUWebGL2HDR
Showcase

glTF Asset Studio

Standards-first glTF assets with physically based materials, animated skeletons, morph targets, animation pointers, and WebGPU/WebGL rendering.

WebGPUWebGL2HDR
Showcase

Instancing

Animate a dense field of geometry with per-instance transforms and colors issued in a compact draw.

WebGPUWebGL2HDR
Showcase

ANARI Playground

Declarative ANARI-style scene editing, OpenUSD/glTF import, HDR rendering, and glTF/USD export.

WebGPUWebGL2HDR
Showcase

Globe

Orbit a richly shaded Earth with animated water, specular oceans, ice, atmosphere, and an HDR Tycho starfield.

WebGPUWebGL2HDR
Showcase

Effects: Glass

Follow emissive multipath packets through glass switches with reflections, transparency, bloom, and HDR tone mapping.

WebGPUWebGL2
Showcase

Effects: Depth of Field

Focus a layered 3D scene with a reusable depth-aware bokeh and depth-of-field pipeline.

WebGPUWebGL2HDR
Showcase

Effects: Bloom

Explore HDR bloom with spectral lens ghosts, diffraction starbursts, halos, temporal stability, and textured lens dirt.

WebGPUWebGL2
Showcase

Effects: Persistence

Accumulate animated electron trails across framebuffer history with a tunable persistence effect.

Next-generation graphics

WebGPU

09
WebGPUHDR
WebGPU

Lightstorm Megacity

Race through an HDR megacity beneath synchronized lightning and thunder, with SSR, bloom, and GPU-driven indirect rendering across up to one million records.

WebGPUHDR
WebGPU

Volumetric Fire Forge

Simulate reactive obstacle-aware fire and render the live volume with depth-correct HDR emission and smoke on WebGPU.

WebGPUHDR
WebGPU

Tempest Ocean: Spectral Stormfront

Fly above a physically displaced spectral ocean with GPU-derived normals, whitecaps, and HDR storm lighting.

WebGPUHDR
WebGPU

Spectral Caustics: Prism Cathedral

Trace a faceted refractor into a six-band, geometry-derived HDR caustic on WebGPU.

WebGPUHDR
WebGPU

Fluid Foundry: Liquid Metal Press

Drive a GPU-resident MLS-MPM liquid through an HDR industrial vessel on WebGPU.

WebGPU
WebGPU

Virtual Geometry Canyon

Explore a procedural canyon whose GPU-selected LOD frontier represents more than 41 million potential leaf triangles.

WebGPU
WebGPU

Effects: Visualization City

Inspect a procedural city through cascaded and local shadows, SSAO, SSR, fog, outlines, TAA, and motion blur.

WebGPUHDR
WebGPU

Deferred Rendering: Illumination Lab

Resolve hundreds of clustered lights through deferred PBR, GTAO, SSGI, SSR, volumetrics, adaptive exposure, and HDR bloom.

WebGPU
WebGPU

Effects: Shadow Map Quality

Compare fitted cascades, PCSS penumbrae, bias, resolution, and debug views across shadow-quality presets.

GPU data and compute pipelines

GPGPU Graph

08
WebGPU
GPGPU Graph

GPGPU

Filter, sort, aggregate, and visualize typed GPU-resident table columns without CPU readback.

WebGPU
GPGPU Graph

GPU frustum culling

Cull, stably compact, pick, and indirectly draw visible instances without a CPU visibility pass.

WebGPU
GPGPU Graph

GPU hierarchical trace

Filter, traverse, pick, density-LOD, and indirectly render hierarchical traces entirely on the GPU.

WebGPU
GPGPU Graph

luGraph explorer

Explore up to 1,048,576 actual GPU vertices and 2,097,343 resident edges through communities, PageRank, neighborhood selection, and bounded force layout.

WebGPU
GPGPU Graph

GPU scene trace

Explore canonical trace scenes with reusable GPU interaction, resource groups, picking, and indirect drawing.

WebGPU
GPGPU Graph

GPU scene graph

Adapt a CPU-owned hierarchy into generic GPU visibility, picking, resource groups, and indirect rendering.

WebGPU
GPGPU Graph

GPU sort

Stably sort paired uint32 keys and values across global or independent batched GPU domains.

WebGPU
GPGPU Graph

GPU data analysis

Compose graph-native GPU analytics and run an opt-in Arrow-driven luDF dataframe benchmark against equivalent CPU results.

Compute, projections, and GPU-native data

GPGPU Graph Modules

06

Core capabilities

API

10
WebGPUWebGL2
API

Animation

Drive a portable render loop with frame timing, animated uniforms, and continuous model updates.

WebGPUWebGL2
API

Effects: Image Processing

Compose, reorder, and live-tune a complete image-effect library against an animated procedural scene.

WebGPUWebGL2
API

Blending

Compare GPU blend equations and source/destination factors on overlapping transparent geometry.

WebGPUWebGL2
API

Multi Canvas

Render two independently resized canvases through presentation contexts backed by one shared GPU device.

WebGPUWebGL2
API

Texture Cube

Sample a cube texture across six faces to render direction-dependent environment imagery.

WebGPUWebGL2
API

Texture 3D

Upload and sample volumetric texture slices inside a continuously animated three-dimensional field.

WebGPUWebGL2
API

Texture Sampling

Compare independent texture samplers across a draggable divider, inspecting filtering, mipmaps, addressing, anisotropy, and depth comparisons.

WebGPUWebGL2
API

Texture Tester

Probe which compressed texture families the current browser and GPU can decode and render.

WebGPUWebGL2
API

Texture Video

Stream live video frames into a dynamic GPU texture and sample them while rendering.

WebGPU
API

Render Bundles

Record repeated WebGPU draw commands once, then replay the bundle efficiently on every frame.

Works with your stack

Integrations

02

Learn by building

Tutorials

13
WebGPUWebGL2
Tutorials

Hello Triangle

Draw a first portable triangle with a Model and backend-specific shaders.

WebGPUWebGL2
Tutorials

Triangle Geometry

Build a triangle from a Geometry object and render it through the portable Model API.

WebGPUWebGL2
Tutorials

Hello Cube

Render textured geometry with uniforms, depth testing, and animation.

WebGPUWebGL2
Tutorials

Hello Lighting

Add normals, material response, and ambient and directional lights to a rotating mesh.

WebGPUWebGL2
Tutorials

Hello glTF

Load a glTF asset and render its meshes, materials, textures, and scene transforms.

WebGPUWebGL2
Tutorials

Two Cubes

Draw two independently transformed cubes from shared geometry, shaders, and texture resources.

WebGPUWebGL2
Tutorials

Instanced Cubes

Animate many cubes with per-instance offsets and colors while sharing one geometry and draw call.

WebGPUWebGL2
Tutorials

Hello Instancing

Draw multiple objects efficiently with per-instance attributes.

WebGPUWebGL2
Tutorials

Shader Modules

Compose reusable shader modules, uniforms, and helper functions into a portable model.

WebGPUWebGL2
Tutorials

Shader Hooks

Inject custom shader logic at declared hook points without replacing the surrounding shader pipeline.

WebGPUWebGL2
Tutorials

Shader Plugins

Extend model shaders with typed plugins that contribute code, bindings, and runtime properties.

WebGL2
Tutorials

Transform Feedback

Update particle-like vertex data entirely on WebGL2 with transform feedback and buffer swapping.

WebGL2
Tutorials

Transform

Run a GPU data transform and capture its computed output for reuse in later rendering work.

Emerging techniques

Experimental

06

GPU-native data

Apache Arrow - luma.gl v10

13
WebGPUWebGL2
Apache Arrow - luma.gl v10

Points

Render Arrow point columns directly from GPU storage with data-driven size and color.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Points - Filtering ShaderPlugin

Filter Arrow-backed point records in the shader with a reusable typed filtering plugin.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Lines

Render variable-length Arrow line paths from shared GPU vectors with per-row styling.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Polygons

Triangulate and render nested Arrow polygon rings while preserving row-level attributes.

WebGPUWebGL2
Apache Arrow - luma.gl v10

GeoArrow

Upload GeoArrow geometry directly into GPU vectors and render its nested spatial coordinates.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Float64 Origin Rebasing

Preserve geospatial precision by rebasing Arrow float64 positions near a GPU-friendly local origin.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Text

Draw labels from Arrow string and position columns with GPU-backed text styling.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Durations

Animate a starfield from Arrow duration intervals and time-dependent visibility on the GPU.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Time

Visualize Arrow timestamp values and scrub time-aware records without converting their columns.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Matrices

Map Arrow fixed-size matrix values into GPU attributes that transform instanced mesh geometry.

WebGPUWebGL2
Apache Arrow - luma.gl v10

Particles

Animate a GPU particle field whose initial positions and properties arrive as Arrow columns.

WebGPU
Apache Arrow - luma.gl v10

Global Grids

Turn Arrow-encoded DGGS cells into GPU-rendered global grid polygons without repacking rows.

WebGPU
Apache Arrow - luma.gl v10

DGGS + time

Render GPU table columns that combine discrete global-grid cells with temporal values and filtering.

GPU-native data

Arrow Layers - deck.gl v10

04