Added UTSAPI
This commit is contained in:
@@ -74,6 +74,22 @@ struct UtsBSDFData
|
||||
real roughnessB;
|
||||
};
|
||||
|
||||
bool IsNonZeroBSDF(float3 L, float3 normalWS)
|
||||
{
|
||||
#if _MATERIAL_TYPE_FACE || _USE_SHADING_RAMP_MAP_ON
|
||||
return true;
|
||||
#else
|
||||
float NdotL = dot(normalWS, L);
|
||||
|
||||
return NdotL > 0.0;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool IsNonZeroBSDF(float3 L, UtsBSDFData bsdfData)
|
||||
{
|
||||
return IsNonZeroBSDF(L, bsdfData.normalWS);
|
||||
}
|
||||
|
||||
UTSSurfaceData ConvertSurfaceDataToUTSSurfaceData(SurfaceData surfaceData)
|
||||
{
|
||||
UTSSurfaceData output;
|
||||
|
||||
Reference in New Issue
Block a user