webgpu sponza
This commit is contained in:
parent
5553ded476
commit
b5d0f52da0
21 changed files with 1426 additions and 58 deletions
11
examples/Sponza/miss.glsl
Normal file
11
examples/Sponza/miss.glsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 460
|
||||
#extension GL_EXT_ray_tracing : enable
|
||||
|
||||
layout(location = 0) rayPayloadInEXT vec3 hitValue;
|
||||
|
||||
void main() {
|
||||
// Soft sky gradient based on ray direction Y. The actual ray dir
|
||||
// isn't accessible without an extra payload field; use a flat warm
|
||||
// tone that matches Sponza's interior lighting.
|
||||
hitValue = vec3(0.10, 0.08, 0.06);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue