Thank you so much.
My template was simply modified from unlit, and it has not yet been completed.
Thank you for your template file.
Search found 5 matches
- Wed Apr 04, 2018 12:03 am
- Forum: Amplify Shader Editor
- Topic: Shader macro?
- Replies: 5
- Views: 3402
- Tue Apr 03, 2018 1:24 am
- Forum: Amplify Shader Editor
- Topic: Shader macro?
- Replies: 5
- Views: 3402
Re: Shader macro?
Hey there, thank you for getting in touch!
You may use Macros with the Custom Expression node in Call Mode, which is set in the node parameters.
I'm afraid that I don't fully understand your next question, as you've posted code for a vertex frag shader, which goes into Shader Templates territory ...
You may use Macros with the Custom Expression node in Call Mode, which is set in the node parameters.
I'm afraid that I don't fully understand your next question, as you've posted code for a vertex frag shader, which goes into Shader Templates territory ...
- Mon Apr 02, 2018 8:32 am
- Forum: Amplify Shader Editor
- Topic: Shader macro?
- Replies: 5
- Views: 3402
Shader macro?
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.
- Mon Mar 26, 2018 11:55 pm
- Forum: Amplify Shader Editor
- Topic: What does the template do?
- Replies: 2
- Views: 1919
Re: What does the template do?
Thank you for your reply, I will continue to try.
- Sun Mar 25, 2018 10:25 am
- Forum: Amplify Shader Editor
- Topic: What does the template do?
- Replies: 2
- Views: 1919
What does the template do?
Hi,
I tried the ASE template from here:
http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Templates
But I don't know what the purpose of the template is, just to generate a code?
test.jpg
The generated code just removes the ase keyword in the template. so,why must ...
I tried the ASE template from here:
http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Templates
But I don't know what the purpose of the template is, just to generate a code?
test.jpg
The generated code just removes the ase keyword in the template. so,why must ...