Shader macro?
Posted: Mon Apr 02, 2018 8:32 am
Hi,
How do I use the Shader macro? Custom expression?
Will ASE generate the following code:
Struct v2f
{
V2F_SHADOW_CASTER;
};
V2f vert( appdata_base v)
{
V2f o;
TRANSFER_SHADOW_CASTER_NORMALOFFSET(o)
Return o;
}
Float4 frag(v2f i):SV_Target
{
SHADOW_CASTER_FRAGMENT(i)
}
Thanks.
How do I use the Shader macro? Custom expression?
Will ASE generate the following code:
Struct v2f
{
V2F_SHADOW_CASTER;
};
V2f vert( appdata_base v)
{
V2f o;
TRANSFER_SHADOW_CASTER_NORMALOFFSET(o)
Return o;
}
Float4 frag(v2f i):SV_Target
{
SHADOW_CASTER_FRAGMENT(i)
}
Thanks.