_xiaofang/xiaofang/Assets/Obi/Resources/Compute/SurfacePoint.cginc
杨号敬 bcc74f0465 add
2024-12-18 02:18:45 +08:00

19 lines
353 B
HLSL

#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