13 lines
503 B
Plaintext
13 lines
503 B
Plaintext
import RayTracingData;
|
|
|
|
[shader("miss")]
|
|
void miss(inout RayPayload p)
|
|
{
|
|
// p.shading.position = WorldRayDirection() * 1000.0f;
|
|
// p.shading.normal = -WorldRayDirection();
|
|
// p.shading.normalLight = -WorldRayDirection();
|
|
// p.material.color = float4(0, 0, 0, 0);
|
|
// miss shaders (GLCompute) can't do ImplicitLod (mip) sampling; use a fixed level
|
|
p.light = float3(pRayTracingParams.skyBox.SampleLevel(pRayTracingParams.skyBoxSampler, WorldRayDirection(), 0).xyz);
|
|
p.hit = false;
|
|
} |