What does the template do?

Node-based Shader Editor

What does the template do?

Postby Rokki » Sun Mar 25, 2018 10:25 am

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 (85.18 KiB) Viewed 1170 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.
Rokki
 
Posts: 5
Joined: Sun Mar 25, 2018 9:33 am

Re: What does the template do?

Postby Ricardo Teixeira » Mon Mar 26, 2018 10:33 am

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: What does the template do?

Postby Rokki » Mon Mar 26, 2018 11:55 pm

Thank you for your reply, I will continue to try.
Rokki
 
Posts: 5
Joined: Sun Mar 25, 2018 9:33 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 86 guests