_xiaofang/xiaofang/Assets/Obi/Resources/Compute/SurfacePoint.cginc

19 lines
353 B
HLSL
Raw Normal View History

2024-12-18 02:18:45 +08:00
#ifndef SURFACEPOINT_INCLUDE
#define SURFACEPOINT_INCLUDE
/**
* point in the surface of a signed distance field.
*/
struct SurfacePoint
{
float4 bary;
float4 pos;
float4 normal;
};
interface IDistanceFunction
{
void Evaluate(in float4 pos, in float4 radii, in quaternion orientation, inout SurfacePoint projectedPoint);
};
#endif