NB_FX
This commit is contained in:
23
Packages/NB_FX/XuanXuanRenderUtility/Shader/HLSL/VAT.hlsl
Normal file
23
Packages/NB_FX/XuanXuanRenderUtility/Shader/HLSL/VAT.hlsl
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef PARTICLE_VAT_INCLUDED
|
||||
#define PARTICLE_VAT_INCLUDED
|
||||
|
||||
#include "HoudiniVAT.hlsl"
|
||||
#include "TyflowVAT.hlsl"
|
||||
|
||||
void ApplyVAT(AttributesParticle input, inout float4 positionOS, inout float3 normalOS)
|
||||
{
|
||||
#if defined(_VAT)
|
||||
if (_VAT_Toggle < 0.5f)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(_VAT_HOUDINI)
|
||||
ApplyHoudiniVAT(input, positionOS, normalOS);
|
||||
#elif defined(_VAT_TYFLOW)
|
||||
ApplyTyflowVAT(input, positionOS, normalOS);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user