Page 1 of 1

What does the template do?

PostPosted: Sun Mar 25, 2018 10:25 am
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 (85.18 KiB) Viewed 1168 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.

Re: What does the template do?

PostPosted: Mon Mar 26, 2018 10:33 am
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!

Re: What does the template do?

PostPosted: Mon Mar 26, 2018 11:55 pm
by Rokki
Thank you for your reply, I will continue to try.