Files

13 lines
503 B
Plaintext
Raw Permalink Normal View History

2024-07-10 21:07:10 +02:00
import RayTracingData;
[shader("miss")]
2024-07-12 13:33:52 +02:00
void miss(inout RayPayload p)
2024-07-10 21:07:10 +02:00
{
2024-12-31 10:40:03 +01:00
// p.shading.position = WorldRayDirection() * 1000.0f;
// p.shading.normal = -WorldRayDirection();
// p.shading.normalLight = -WorldRayDirection();
// p.material.color = float4(0, 0, 0, 0);
2026-11-08 23:00:57 +01:00
// miss shaders (GLCompute) can't do ImplicitLod (mip) sampling; use a fixed level
p.light = float3(pRayTracingParams.skyBox.SampleLevel(pRayTracingParams.skyBoxSampler, WorldRayDirection(), 0).xyz);
2024-12-31 10:40:03 +01:00
p.hit = false;
2024-07-10 21:07:10 +02:00
}