3D rendering examples
The engine's 3D rendering examples: what each one shows, whether it runs in a browser and the command that runs it.
Meshes, materials, lights, shadows, the environment, post-processing and anti-aliasing in 3D. There are 62 examples on this page. For the concepts behind them, see 3D rendering.
Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.
Examples#
| Example | What it shows | Web | Run |
|---|---|---|---|
| 3D Bloom | Illustrates bloom configuration using HDR and emissive materials | Yes | cargo run --example bloom_3d |
| 3D Scene | Simple 3D scene with basic shapes and lighting | Yes | cargo run --example 3d_scene |
| 3D Shapes | A scene showcasing the built-in 3D shapes | Yes | cargo run --example 3d_shapes |
| 3D Viewport To World | Demonstrates how to use the Camera::viewport_to_world method | Yes | cargo run --example 3d_viewport_to_world |
| Animated Material | Shows how to animate material properties | Yes | cargo run --example animated_material |
| Anisotropy | Displays an example model with anisotropy | No | cargo run --example anisotropy --features jpeg,pbr_anisotropy_texture |
| Anti-aliasing | Compares different anti-aliasing techniques supported by NEO | No | cargo run --example anti_aliasing |
| Atmosphere | A scene showcasing pbr atmospheric scattering | Yes | cargo run --example atmosphere |
| Atmospheric Fog | A scene showcasing the atmospheric fog effect | Yes | cargo run --example atmospheric_fog |
| Auto Exposure | A scene showcasing auto exposure | No | cargo run --example auto_exposure |
| Blend Modes | Showcases different blend modes | Yes | cargo run --example blend_modes |
| Built-in postprocessing | Demonstrates the built-in postprocessing features | Yes | cargo run --example post_processing |
| Camera sub view | Demonstrates using different sub view effects on a camera | Yes | cargo run --example camera_sub_view |
| Clearcoat | Demonstrates the clearcoat PBR feature | No | cargo run --example clearcoat --features pbr_multi_layer_material_textures,neo_feathers |
| Clustered Decals | Demonstrates clustered decals | No | cargo run --example clustered_decals --features pbr_clustered_decals,neo_feathers |
| Color grading | Demonstrates color grading | Yes | cargo run --example color_grading --features neo_feathers |
| Contact Shadows | Showcases how contact shadows add shadow detail | Yes | cargo run --example contact_shadows --features bluenoise_texture,neo_feathers |
| Decal | Decal rendering | Yes | cargo run --example decal --features free_camera |
| Deferred Rendering | Renders meshes with both forward and deferred pipelines | Yes | cargo run --example deferred_rendering |
| Depth of field | Demonstrates depth of field | No | cargo run --example depth_of_field |
| Fog | A scene showcasing the distance fog effect | Yes | cargo run --example fog |
| Fog volumes | Demonstrates fog volumes | No | cargo run --example fog_volumes |
| Generate Custom Mesh | Simple showcase of how to generate a custom mesh with a custom texture | Yes | cargo run --example generate_custom_mesh |
| Irradiance Volumes | Demonstrates irradiance volumes | Yes | cargo run --example irradiance_volumes |
| Light Textures | Demonstrates light textures | No | cargo run --example light_textures --features pbr_light_textures,neo_feathers |
| Lighting | Illustrates various lighting options in a simple scene | Yes | cargo run --example lighting |
| Lightmaps | Rendering a scene with baked lightmaps | Yes | cargo run --example lightmaps |
| Lines | Create a custom material to draw 3d lines | Yes | cargo run --example lines |
| Mesh Ray Cast | Demonstrates ray casting with the MeshRayCast system parameter | Yes | cargo run --example mesh_ray_cast |
| Mirror | Demonstrates how to create a mirror with a second camera | Yes | cargo run --example mirror --features neo_feathers |
| Mixed lighting | Demonstrates how to combine baked and dynamic lighting | Yes | cargo run --example mixed_lighting --features jpeg,neo_feathers |
| Motion Blur | Demonstrates per-pixel motion blur | Yes | cargo run --example motion_blur |
| Occlusion Culling | Demonstration of Occlusion Culling | No | cargo run --example occlusion_culling --features neo_feathers |
| Order Independent Transparency | Demonstrates how to use OIT | No | cargo run --example order_independent_transparency --features neo_feathers |
| Orthographic View | Shows how to create a 3D orthographic view (for isometric-look in games or CAD applications) | Yes | cargo run --example orthographic |
| Parallax Mapping | Demonstrates use of a normal map and depth map for parallax mapping | Yes | cargo run --example parallax_mapping |
| Parenting | Demonstrates parent->child relationships and relative transformations | Yes | cargo run --example parenting |
| Percentage-closer soft shadows | Demonstrates percentage-closer soft shadows (PCSS) | No | cargo run --example pcss --features neo_feathers,experimental_pbr_pcss |
| Physically Based Rendering | Demonstrates use of Physically Based Rendering (PBR) properties | Yes | cargo run --example pbr |
| Rectangular Area Light | Simple 3D scene demonstrating rectangular area lights. | Yes | cargo run --example rect_light --features free_camera,area_light_luts |
| Reflection Probes | Demonstrates reflection probes | No | cargo run --example reflection_probes |
| Render to Texture | Shows how to render to a texture, useful for mirrors, UI, or exporting images | Yes | cargo run --example render_to_texture |
| Rotate Environment Map | Demonstrates how to rotate the skybox and the environment map simultaneously | No | cargo run --example rotate_environment_map --features pbr_multi_layer_material_textures |
| Screen Space Ambient Occlusion | A scene showcasing screen space ambient occlusion | No | cargo run --example ssao |
| Screen Space Reflections | Demonstrates screen space reflections with water ripples | No | cargo run --example ssr --features bluenoise_texture,neo_feathers |
| Scrolling fog | Demonstrates how to create the effect of fog moving in the wind | No | cargo run --example scrolling_fog |
| Shadow Biases | Demonstrates how shadow biases affect shadows in a 3d scene | Yes | cargo run --example shadow_biases --features free_camera |
| Shadow Caster and Receiver | Demonstrates how to prevent meshes from casting/receiving shadows in a 3d scene | Yes | cargo run --example shadow_caster_receiver |
| Skybox | Load a cubemap texture onto a cube like a skybox and cycle through different compressed texture formats. | Yes | cargo run --example skybox --features free_camera |
| Specular Tint | Demonstrates specular tints and maps | Yes | cargo run --example specular_tint --features pbr_specular_textures,neo_feathers |
| Spherical Area Lights | Demonstrates how point light radius values affect light behavior | Yes | cargo run --example spherical_area_lights |
| Split Screen | Demonstrates how to render two cameras to the same window to accomplish "split screen" | Yes | cargo run --example split_screen --features neo_feathers |
| Spotlight | Illustrates spot lights | Yes | cargo run --example spotlight |
| Texture | Shows configuration of texture materials | Yes | cargo run --example texture |
| Tonemapping | Compares tonemapping options | Yes | cargo run --example tonemapping |
| Transmission | Showcases light transmission in the PBR material | Yes | cargo run --example transmission |
| Transparency in 3D | Demonstrates transparency in 3d | Yes | cargo run --example transparency_3d |
| Two Passes | Renders two 3d passes to the same window from different perspectives | Yes | cargo run --example two_passes |
| Vertex Colors | Shows the use of vertex colors | Yes | cargo run --example vertex_colors |
| Visibility range | Demonstrates visibility ranges | Yes | cargo run --example visibility_range |
| Volumetric fog | Demonstrates volumetric fog and lighting | Yes | cargo run --example volumetric_fog |
| Wireframe | Showcases wireframe rendering | No | cargo run --example wireframe |