luma.gl
Examples
Explore interactive examples for rendering, GPU compute, data processing, and visualization.
Find examples
Search by name, topic, graphics API, or difficulty.
Showing 138 of 138 examples
Featured examples
Showcase

Gaussian Splat Viewer
Explore captured Gaussian scenes and custom camera-driven RAD landscapes.

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

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

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

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

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

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

Effects: Persistence
Accumulate animated electron trails across framebuffer history with a tunable persistence effect.
Core capabilities
glTF standard features

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

glTF Clearcoat
Layered glossy coatings and car paint using the standardized KHR_materials_clearcoat extension.

glTF Sheen
Cloth and velvet with grazing-angle sheen using the standardized KHR_materials_sheen extension.

glTF Iridescence
Thin-film interference and shifting colors using the standardized KHR_materials_iridescence extension.

glTF Anisotropy
Directional brushed-metal highlights using the standardized KHR_materials_anisotropy extension.

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

glTF Interactivity
Explore published Khronos behavior-graph assets, run their authored checks, and inspect their operations.
Core capabilities
glTF proposed features

glTF Spatial Audio
Hear spatial audio from a glTF Boom Box as you orbit and zoom.

glTF Audio Graph
Hear authored filters and gain processing in the source Drum Kit.

glTF Audio Environment
Hear the source Drum Kit through its authored small-room environment profile.

glTF Billboards
Camera-facing trees and labels from the original Khronos BillboardDemo.

glTF Lightmaps
Baked diffuse irradiance from the original Lightmapped Cornell Box.

glTF Area Lights
Rectangle lighting in the original Modern Living Room scene.

glTF Material Scatter
Upstream thin-wall scattering reference with scalar and textured transmission and scatter strength.
Core capabilities
ANARI
Core capabilities
Physics

Sphere World
Rolling spheres, contacts, friction and an interactive tilting platform.

Large Sphere World
Large-count sphere simulation and GPU broad-phase workloads.

Pool
Mouse-driven pool with spin, cushions, pockets and contact sounds.

Rigid Body Lab
Explore GPU physics and inspect descriptions of simulation operations.

Newton's Cradle
A suspended row of steel balls transfers momentum through GPU-simulated contacts.

Spiral Dominoes
One nudge sends a falling wave through 207 individually simulated dominoes.

Wrecking Ball
A heavy suspended wrecking ball demolishes a pyramid of 204 GPU-simulated blocks.

Physics Stress Lab
Inspect GPU physics capacity recovery, dense contacts, mass ratios and analytic motion references.

Physics Batch Lab
Compare GPU physics ensembles, submission batching, memory and throughput.

Space Salvage
Recover drifting cargo using GPU rigid-body contacts, raycasts and overlap queries.

glTF Physics Extensions
Published draft glTF physics assets simulated with WebGPU and rendered with their original meshes and materials.

Authored Scene Stress Lab
Exercise animation ownership, GPU render publication and repeated capture, restore and reset of authored physics scenes.
Next-generation graphics
WebGPU

Vector Observatory
Follow a million GPU particles through scientific vector fields with RK4 advection and luminous HDR trails.

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.

Inside a Transformer
Follow prompt tokens through embeddings, multi-head attention, hidden layers, and next-token prediction in an interactive GPU-rendered explainer.

GPU Volume Algorithms Volume Lab
Segment and inspect a synthetic CT-like volume with reusable WebGPU command graphs.

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

Tempest Ocean: Spectral Stormfront
Fly above a physically displaced spectral ocean with GPU-derived normals, whitecaps, and HDR storm lighting.

Spectral Caustics: Prism Cathedral
Trace a faceted refractor into a six-band, geometry-derived HDR caustic on WebGPU.

Fluid Foundry: Liquid Metal Press
Drive a GPU-resident MLS-MPM liquid through an HDR industrial vessel on WebGPU.

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

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

Deferred Rendering: Illumination Lab
Resolve hundreds of clustered lights through deferred PBR, GTAO, SSGI, SSR, volumetrics, adaptive exposure, and HDR bloom.

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

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

GPU Simple Graph
Evaluate typed table expressions through GPUSimpleGraph on WebGPU or WebGL2.

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

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

GPU Graph 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.

GPU time series
Explore three million telemetry samples with exact spike envelopes and linked time windows.

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

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

GPUCommandGraph: Vector Field Lab
Orbit a sampled 3D field beside GPU-computed gradient, divergence, curl, and Laplacian volumes.

GPUFFT2D: Spectral Dynamics Lab
Watch one GPU-resident wave evolve simultaneously in physical and Fourier space.

GPUCommandGraph: Quantum State Studio
Scrub classical quantum state vectors on the GPU through linked probability, phase, Bloch, interference, and correlation views.

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

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

GPUCrossfilter: Million-Row Crossfilter Explorer
Explore one million GPU-resident dataframe rows across linked maps, scatterplots, histograms, and categorical distributions without source-row CPU readback.

GPURaster: Satellite Raster Lab
Explore GPU cross-tile component identities, merged region measurements, global raster histograms, nodata-aware overviews, seam-safe halos, NDVI, and contours.

GPU Parquet constellation
Decode a deliberately GPU-friendly Parquet galaxy on the CPU or GPU and render the result without readback.

GPU Geometry Surface Lab
Compare the original on the left with GPU-processed data on the right. Use the controls to change

GPU Point Cloud Cleanup Lab
Compare the original on the left with GPU-processed data on the right. Use the controls to change

Additive Point Cloud Octree
Build an additive octree entirely on the GPU, then reveal successive levels with Detail depth

Billion-Point Spatial Atlas
Query and indirectly render massive NYC point corpora with graph-native WebGPU geospatial algorithms.

GPT-2 Transformer
Run GPT-2 inference with WebGPU compute pipelines and GPU-resident model data.
Core capabilities
API

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

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

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

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

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

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

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

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

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

Render Bundles
Record repeated WebGPU draw commands once, then replay the bundle efficiently on every frame.
Core capabilities
Three.js

Galactic Vortex
Animate a galaxy with a luma GPU graph and render shared star buffers directly with Three.js.

Deck layers in a Three.js app
Add deck.gl layers to an existing Three.js scene with synchronized cameras and shared depth.

Three.js through luma.gl
Compare the private Three.js backend, object adapter and shared compute buffers against upstream Three.js in synchronized split-screen views.
Works with your stack
Integrations
Learn by building
Tutorials

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

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

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

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

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

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

Hello Instancing
Draw multiple objects efficiently with per-instance attributes.

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

Shader Injection
Inject custom shader logic at declared injection targets without replacing the surrounding shader pipeline.

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

Slang Shaders
Explore an animated ray-marched sculpture written in Slang on WebGL 2 and WebGPU.

Slang Particles
A shared Slang source simulates and renders a particle vortex on WebGPU.

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

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

Order-independent Transparency
Compare exact per-pixel A-buffer transparency, weighted blended OIT, and ordinary alpha blending.

Antialiasing Techniques
Compare single-sample rendering, FXAA, supersampling, and texture filtering in a split view.

FP64
Compare float32 and emulated float64 shader arithmetic along the same deep Mandelbrot zoom.

Text Space Crawl
Compare extruded, bitmap, SDF, and MSDF text as glyphs recede through perspective space.

Texture HTML-in-Canvas
Copy live DOM panels into GPU textures and map them onto a rotating interactive prism.

WebXR: Immersive Prism Portal
Explore a stereoscopic prism tunnel rendered through native WebGPU projection layers, with a portable WebGL2 and AR camera fallback.
GPU-native data
Apache Arrow - luma.gl v10

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

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

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

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

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

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

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

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

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

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

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

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

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

ArrowPathLayer
Render Arrow-native path columns through deck.gl while keeping variable-length geometry GPU-ready.

ArrowPolygonLayer
Feed Arrow polygon rings and row attributes directly into a deck.gl polygon layer.

ArrowTextLayer
Bind Arrow labels, positions, colors, and sizes directly to deck.gl text rendering.
Core capabilities
Visual Effects - deck.gl v10

Riverfront weather
Tune rain, snow, drifting fog, clouds, and daylight driven by a shared astronomy clock.

Riverfront soft shadows
Animate sunlight, atmospheric scattering, cloud shadows, and soft shadows in a deck.gl riverfront scene.

Globe weather
A rotating globe with animated volumetric cloud cover and adjustable sunlight.

Riverfront Water
Tune animated river water and screen-space reflections in an interactive Deck city scene.

Riverfront flow
Explore GPU particle advection through tiled and changing river currents with depth-tested trails.

Wind Atlas
Inspect graph-backed GPU wind advection inside deck.gl.

Riverfront lights and fireflies
Warm lampposts and small fireflies on opposite river banks, with calm-water reflections.

Riverfront HDR night lighting
Scene-linear point lights, multiscale bloom and smooth exposure adaptation.

Riverfront global illumination
Colored diffuse bounce from visible buildings using the existing screen-space GI graph.

Riverfront light shafts
Depth-occluded participating-media light shafts with temporal stabilization.

Riverfront ambient occlusion
Apply reusable luma.gl ambient occlusion to a deck.gl riverfront scene.

Riverfront depth of field
Apply reusable luma.gl depth of field to a deck.gl riverfront scene.

Riverfront outlines
Compare architectural and triangle-derived building outlines with pencil or solid strokes.

Riverfront Selection Outline
Inspect captured color, depth, normals, and selection buffers, then composite bloom and a selection outline.

Riverfront patterns
Surface-anchored hatch, crosshatch, and dot fills with minification filtering.

Riverfront routes
Connected paths with pencil and glow styles, configurable caps and joins, and filtered dashes.
GPU-driven deck.gl integrations
GPU Graph Layers - deck.gl v10

GPU Project + GPU Spatial: Taxi Explorer
Project and query one million GPU-resident taxi points with GPU Project and GPU Spatial, then render the result indirectly with deck.gl.

GPU Graph + deck.gl: Network Explorer
Explore up to 1,048,576 actual GPU vertices and 2,097,343 resident edges through real deck.gl layers, graph analytics, and bounded force layout.

GPU-Culled Trace
Cull a hierarchical trace on the GPU and label the retained spans with Arrow-backed text.


