Gallery
This gallery showcases output images from LuisaCompute examples and integration tests.
Reference images are stored in docs/gallery/ and are automatically generated
by running examples and tests with the --offline flag.
To regenerate reference images:
./bin/<example_or_test> <backend> --update-reference
Rendering
Path Tracing
Cornell Box rendered with Monte Carlo path tracing, demonstrating global illumination, soft shadows, and color bleeding.
Source: examples/rendering/path_tracing.cpp
Path Tracing (HDR)
High dynamic range path tracing with tone mapping.
Source: examples/rendering/path_tracing_hdr.cpp
Path Tracing (Camera)
Path tracing with depth of field camera model.
Source: examples/rendering/path_tracing_camera.cpp
Path Tracing (Cutout)
Path tracing with alpha-tested cutout geometry.
Source: examples/rendering/path_tracing_cutout.cpp
Path Tracing (Nested Callable)
Path tracing demonstrating nested callable composition.
Source: examples/rendering/path_tracing_nested_callable.cpp
Path Tracing (Ray Masks)
Path tracing with per-instance ray visibility masks.
Source: examples/rendering/path_tracing_ray_masks.cpp
Path Tracing (Spectral)
Spectral path tracing with wavelength-dependent rendering.
Source: examples/rendering/path_tracing_spectrum.cpp
Path Tracing (IR Backend)
Path tracing compiled through the IR pipeline.
Source: examples/rendering/path_tracing_ir.cpp
Photon Mapping
Global illumination via photon mapping with caustics.
Source: examples/rendering/photon_mapping.cpp
SDF Renderer
Signed distance field renderer with ray marching.
Source: examples/rendering/sdf_renderer.cpp
SDF Renderer (IR Backend)
SDF renderer compiled through the IR pipeline.
Source: examples/rendering/sdf_renderer_ir.cpp
Voxel Ray Tracer
Real-time voxel rendering with ray tracing.
Source: examples/rendering/voxel_raytracer.cpp
Black Hole
Interstellar-style black hole with gravitational lensing and accretion disk.
Source: examples/rendering/blackhole.cpp
ShaderToy
Classic ShaderToy-style procedural rendering.
Source: examples/rendering/shader_toy.cpp
ShaderToy (SpaceX)
SpaceX-inspired ShaderToy effect.
Source: examples/rendering/shader_toy_spacex.cpp
Procedural Geometry
Procedural geometry rendering with ray tracing.
Source: examples/rendering/procedural.cpp
Simulation
MPM88 Fluid
Material Point Method fluid simulation.
Source: examples/simulation/mpm88.cpp
Game of Life
Conway’s Game of Life cellular automaton.
Source: examples/simulation/game_of_life.cpp
Wave Equation
Interactive wave equation PDE solver.
Source: examples/simulation/wave_equation.cpp
Fire Simulation
Physics-based fire particle system.
Source: examples/simulation/fire_simulation.cpp
N-Body Simulation
Gravitational N-body particle simulation.
Source: examples/simulation/nbody_simulation.cpp
Compute
Image Processing
Multi-pass image processing pipeline with filters and effects.
Source: examples/compute/image_processing.cpp
Integration Tests
These images are produced by integration tests and verify correctness of specific framework features.
RTX Ray Tracing
Basic RTX intersection test with triangle meshes.
Source: src/tests/integration/runtime/test_rtx.cpp
Indirect RTX
Indirect dispatch ray tracing test.
Source: src/tests/integration/runtime/test_indirect_rtx.cpp
Procedural (Test)
Procedural rendering integration test.
Source: src/tests/integration/runtime/test_procedural.cpp
Native Code Include
External native shader code inclusion test.
Source: src/tests/integration/runtime/test_native_include.cpp
Motion Blur
Motion blur rendering with mesh and curve keyframes.
Source: src/tests/integration/runtime/test_motion_blur.cpp
3D Texture Volume Rendering
Perlin noise volume rendering with ray marching.
Source: src/tests/integration/runtime/test_texture3d.cpp