forked from Dynamitos/Seele
Fix miscellaneus errors
This commit is contained in:
1 parent
d33533474c
commit
1bb36333e6
17 files changed
+146
-88
No files matched your search
@@ -7,6 +7,7 @@ void miss(inout RayPayload p)
|
||||
// p.shading.normal = -WorldRayDirection();
|
||||
// p.shading.normalLight = -WorldRayDirection();
|
||||
// p.material.color = float4(0, 0, 0, 0);
|
||||
p.light = float3(pRayTracingParams.skyBox.Sample(pRayTracingParams.skyBoxSampler, WorldRayDirection()).xyz);
|
||||
// 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;
|
||||
}
|
||||
Reference in new issue
Block a user