Rokki wrote:Hi,
I tried the ASE template from here:
http://wiki.amplify.pt/index.php?title= ... /TemplatesBut 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.
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 TemplatesLet us know if you have any additional questions, we would be happy to help!