Skip to content

Comments

feat: Add global ambient light to PBR shader#219

Merged
schell merged 2 commits intomainfrom
feat/ambient-light
Feb 21, 2026
Merged

feat: Add global ambient light to PBR shader#219
schell merged 2 commits intomainfrom
feat/ambient-light

Conversation

@schell
Copy link
Owner

@schell schell commented Feb 20, 2026

Add an ambient_color field (Vec4: RGB + intensity) to LightingDescriptor, allowing users to set a flat ambient light term via Stage::set_ambient_color. The ambient contribution is modulated by surface albedo and ambient occlusion, and is additive with the existing IBL and analytical light contributions. Defaults to zero for full backward compatibility.

These changes were made in part by claude code (Opus 4.6). The session transcript is attached.

session-ambient-light.md

schell and others added 2 commits February 21, 2026 12:11
Add an ambient_color field (Vec4: RGB + intensity) to
LightingDescriptor, allowing users to set a flat ambient light term
via Stage::set_ambient_color. The ambient contribution is modulated
by surface albedo and ambient occlusion, and is additive with the
existing IBL and analytical light contributions. Defaults to zero
for full backward compatibility.

Co-authored-by: Claude <noreply@anthropic.com>
@schell schell force-pushed the feat/ambient-light branch from cacbffa to e48ca61 Compare February 20, 2026 23:58
@schell schell merged commit 70f5ace into main Feb 21, 2026
10 checks passed
@schell schell deleted the feat/ambient-light branch February 21, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant