forked from Dynamitos/Seele
nevermind, its not supposed to work, anyhit is not invoked on opaque
This commit is contained in:
1 parent
89570ff792
commit
3357af747a
4 files changed
+7
-2
No files matched your search
@@ -7,6 +7,8 @@ import StaticMeshVertexData;
|
||||
[shader("anyhit")]
|
||||
void anyhit(inout RayPayload hitValue, in BuiltInTriangleIntersectionAttributes attr)
|
||||
{
|
||||
if(RayTCurrent() > hitValue.t)
|
||||
return;
|
||||
const float3 barycentricCoords = float3(1.0f - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y);
|
||||
|
||||
InstanceData inst = pScene.instances[InstanceID()];
|
||||
|
||||
Reference in new issue
Block a user