You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
726 B

#ifndef UNITY_RAY_TRACING_INTERSECTION_SUBSURFACE_INCLUDED
#define UNITY_RAY_TRACING_INTERSECTION_SUBSURFACE_INCLUDED
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/Shaders/RaytracingIntersection.hlsl"
// Structure that defines the current state of the intersection
struct RayIntersectionSubSurface
{
// Distance of the intersection
float t;
// Origin of the current ray
float3 outNormal;
// Indirect diffuse at the intersected point
float3 outIndirectDiffuse;
// Pixel coordinate matching this ray path
uint2 pixelCoord;
// Cone representation of the ray
RayCone cone;
};
#endif // UNITY_RAY_TRACING_INTERSECTION_SUBSURFACE_INCLUDED