What does the template do?

Node-based Shader Editor
Post Reply
Rokki
Posts: 5
Joined: Sun Mar 25, 2018 9:33 am

What does the template do?

Post by Rokki »

Hi,
I tried the ASE template from here:
http://wiki.amplify.pt/index.php?title= ... /Templates

But I don't know what the purpose of the template is, just to generate a code?
test.jpg
test.jpg (84.94 KiB) Viewed 1922 times
The generated code just removes the ase keyword in the template. so,why must setting tags like this: uv0=tc0?
Am i missing something?
Thanks in advance.
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: What does the template do?

Post by Ricardo Teixeira »

Rokki wrote:Hi,
I tried the ASE template from here:
http://wiki.amplify.pt/index.php?title= ... /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 setting tags like this: uv0=tc0?
Am i missing something?
Thanks in advance.
Hello,

The purpose of the Template System is to allow users to create their own shader types; currently, this is done by inserting tags as the one referenced in specific locations. A shader file defined as a template will always include your tags, shaders generated from a template will not include any custom tags.

When a functional template is present in your project, you will be able to create shaders using the available types as with the included template samples.

Image

uv0=tc0.xy: Corresponds to the TEXCOORD0 semantic variable, most specifically its x and y component, contains UV set 0.

Have you had the chance to examine the available documentation?

Official Wiki - Shader Templates

Let us know if you have any additional questions, we would be happy to help!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Rokki
Posts: 5
Joined: Sun Mar 25, 2018 9:33 am

Re: What does the template do?

Post by Rokki »

Thank you for your reply, I will continue to try.
Post Reply