O3DE Atom Renderer & Material System
⚛️ O3DE Atom Renderer & Material System
Atom is O3DE's modern, modular rendering engine. It's built on top of a Render Hardware Interface (RHI) that abstracts DX12, Vulkan, and Metal into a single API. Unlike monolithic renderers, Atom uses a pass-based architecture where the entire render pipeline is a configurable graph of passes.
🏗️ Atom Architecture
┌──────────────────────────────────────────────────┐
│ Application Layer │
├──────────────────────────────────────────────────┤
│ Feature Processors │
│ (Mesh, Skinned Mesh, Decals, Lights, Sky, etc.) │
├──────────────────────────────────────────────────┤
│ RPI (Render Pipeline Interface) │
│ Pass System │ Scene/View Management │
├──────────────────────────────────────────────────┤
│ RHI (Render Hardware Interface) │
│ DX12 Backend │ Vulkan Backend │ Metal Backend │
└──────────────────────────────────────────────────┘
Layer Breakdown
| Layer | Purpose |
|---|---|
| Feature Processors | High-level rendering features (meshes, lights, shadows, decals, hair) |
| RPI (Render Pipeline Interface) | Pass graph management, scene/view setup, shader resource binding |
| RHI (Render Hardware Interface) | GPU command recording, resource creation, platform abstraction |
| Backend | Platform-specific GPU API implementation |
The RHI is the key innovation. You write rendering code once against the RHI, and it runs on DX12, Vulkan, and Metal without platform #ifdefs. This is conceptually similar to Vulkan's own design philosophy but taken a level higher.
🔀 Pass System — Modular Render Graphs
The entire render pipeline is defined as a directed acyclic graph (DAG) of passes. Each pass reads inputs and writes outputs, and the system wires them together automatically.
Default Forward+ Pipeline
Depth Pre-Pass
│
├─→ Shadow Maps (Cascaded, Spot, Point)
│
├─→ Forward Pass (PBR Shading + Light Culling)
│
├─→ Transparent Pass
│
├─→ Sky Pass (HDRi Skybox)
│
├─→ Post-Processing
│ ├─→ SSAO
│ ├─→ Bloom
│ ├─→ Depth of Field
│ ├─→ Tone Mapping (ACES)
│ └─→ Anti-Aliasing (TAA / SMAA)
│
└─→ UI Overlay → Final Output
Pass Template Definition (JSON)
Passes are defined in .pass template files:
{
"Type": "JsonSerialization",
"ClassName": "PassTemplate",
"ClassData": {
"Name": "MyCustomBlurPass",
"PassClass": "FullscreenTrianglePass",
"Slots": [
{
"Name": "Input",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "Output",
"SlotType": "Output",
"ScopeAttachmentUsage": "RenderTarget"
}
],
"PassData": {
"$type": "FullscreenTrianglePassData",
"ShaderAsset": {
"FilePath": "Shaders/PostProcessing/GaussianBlur.shader"
}
}
}
}
You can insert custom passes into the render pipeline without modifying engine code. Create a Gem with your pass templates and shaders, then inject them into the pipeline via a PassRequest in your Gem's system component.
🎨 Material System
O3DE's material system is split into Material Types (define the shader and properties) and Materials (instances with specific property values).
File Hierarchy
.materialtype → Defines the shader, property layout, and rendering behavior
│
└── .material → Instance with specific property values (colors, textures)
│
└── Per-Entity Overrides → In the Entity Inspector
Material Type Definition (.materialtype)
{
"propertyLayout": {
"propertyGroups": [
{
"name": "baseColor",
"properties": [
{
"name": "color",
"type": "Color",
"defaultValue": [1.0, 1.0, 1.0, 1.0],
"connection": {
"type": "ShaderInput",
"name": "m_baseColor"
}
},
{
"name": "texture",
"type": "Image",
"connection": {
"type": "ShaderInput",
"name": "m_baseColorMap"
}
}
]
},
{
"name": "metallic",
"properties": [
{
"name": "factor",
"type": "Float",
"defaultValue": 0.0,
"min": 0.0,
"max": 1.0
}
]
}
]
},
"shaders": [
{ "file": "Shaders/PBR/StandardPBR_ForwardPass.shader" }
]
}
Standard PBR Properties
O3DE's default StandardPBR material type supports:
| Property | Type | Range | Description |
|---|---|---|---|
| Base Color | Color / Texture | — | Albedo / diffuse color |
| Metallic | Float / Texture | 0–1 | Metalness (dielectric vs conductor) |
| Roughness | Float / Texture | 0–1 | Surface micro-roughness |
| Normal | Texture | — | Tangent-space normal map |
| Emissive | Color / Texture | — | Self-illumination |
| Opacity | Float / Texture | 0–1 | Transparency |
| Ambient Occlusion | Texture | — | Cavity darkening |
| Height / Parallax | Texture | — | Parallax occlusion mapping |
| Subsurface | Color | — | Subsurface scattering (skin, wax) |
🖌️ Material Canvas — Node-Based Material Editor
Material Canvas is O3DE's visual material editor — similar to Unreal's Material Editor or Godot's Visual Shader.
[Texture Sample: BaseColor] ─→ ┐
├─→ [Standard PBR Output]
[Texture Sample: Normal] ─→ ┘ │
├─→ Base Color
[Float: Roughness = 0.4] ──────────→ ├─→ Roughness
├─→ Normal
[Noise Generator] ├─→ Metallic
│ └─→ Emissive
└─→ [Lerp] ─→ [Multiply] ──────→
Material Canvas generates AZSL shader code (O3DE's shading language, a superset of HLSL) from the node graph.
✍️ AZSL — O3DE's Shading Language
AZSL (Amazon Shading Language) is a superset of HLSL with O3DE-specific extensions:
// MyCustomShader.azsl
#include <Atom/Features/PBR/DefaultObjectSrg.azsli>
#include <Atom/Features/PBR/LightingModel.azsli>
ShaderResourceGroup MaterialSrg : SRG_PerMaterial
{
float4 m_baseColor;
float m_roughness;
float m_metallic;
Texture2D m_baseColorMap;
Sampler m_sampler;
}
struct VSOutput
{
float4 position : SV_Position;
float3 normal : NORMAL;
float2 uv : TEXCOORD0;
};
float4 MainPS(VSOutput input) : SV_Target
{
float4 baseColor = MaterialSrg::m_baseColorMap.Sample(
MaterialSrg::m_sampler, input.uv
) * MaterialSrg::m_baseColor;
// PBR lighting calculation
Surface surface;
surface.albedo = baseColor.rgb;
surface.roughness = MaterialSrg::m_roughness;
surface.metallic = MaterialSrg::m_metallic;
surface.normal = normalize(input.normal);
float3 litColor = EvaluateDirectLighting(surface);
return float4(litColor, baseColor.a);
}
AZSL uses ShaderResourceGroup (SRG) blocks instead of bare register bindings. SRGs are similar to Vulkan's Descriptor Sets — they group related resources and bind them together. O3DE has four frequency levels: SRG_PerScene, SRG_PerView, SRG_PerObject, SRG_PerMaterial.
🆚 Atom vs UE5 vs Godot 4 Rendering
| Feature | Atom (O3DE) | UE5 (Lumen/Nanite) | Godot 4 |
|---|---|---|---|
| Architecture | Pass graph DAG | Render Dependency Graph | Fixed pipeline stages |
| Virtual Geometry | ❌ Not yet | ✅ Nanite | ❌ |
| Global Illumination | Diffuse Probe Grid | Lumen (SW ray tracing) | SDFGI / VoxelGI |
| Shadows | Cascaded + PCF + PCSS | Virtual Shadow Maps | PCF / PCSS |
| Material Editor | Material Canvas (nodes) | Material Editor (nodes) | Visual Shader (nodes) |
| Shading Language | AZSL (HLSL superset) | USF (HLSL) | GLSL-like |
| API Abstraction | RHI (DX12/Vulkan/Metal) | RHI (DX11/12/Vulkan) | RenderingDevice (Vulkan/GL) |
| Ray Tracing | ✅ DXR / Vulkan RT | ✅ Full RT pipeline | ❌ |
| Post Processing | Bloom, DoF, SSAO, TAA | Full stack + Lumen GI | Bloom, DoF, SSAO, SSIL |
| Open Source | ✅ Full source | ⚠️ Source access (license) | ✅ Full source |
🔧 Post-Processing Configuration
Post-processing is controlled via PostFX Volume components on entities:
Entity: "Global PostFX"
├── PostFX Volume Component
│ ├── Bloom
│ │ ├── Enabled: true
│ │ ├── Intensity: 0.8
│ │ └── Threshold: 1.2
│ ├── Depth of Field
│ │ ├── Focus Distance: 10.0
│ │ └── Aperture: f/2.8
│ ├── SSAO
│ │ ├── Strength: 1.0
│ │ └── Radius: 0.5m
│ └── Tone Mapping
│ └── Type: ACES Filmic
└── Shape Component (Box/Sphere for local volumes)
🔗 Related Notes
- O3DE Overview & Architecture — Engine architecture and Gem system
- O3DE Gems & Modular Architecture — Atom is a Gem you can extend
- O3DE Editor Workflow & Entity Components — Setting up materials in the editor
- Deferred Shading vs Forward Shading — Unreal's rendering comparison
- Pipelines & Shaders — Vulkan pipeline stages
- Descriptor Sets & Bindless Rendering — Resource binding in Vulkan (SRG equivalent)
- Environment — Godot's rendering and post-processing setup
- O3DE Hub