Search found 4 matches

by nothingcat
Fri Nov 16, 2018 8:56 am
Forum: General Discussion
Topic: Custom local variable insert Position In Template Shader
Replies: 6
Views: 9053

Re: Custom local variable insert Position In Template Shader

Em.This issue has been fixed . Use the code I paste in previous reply . I just make a custom node to generate local variable name , to make it work as I expect .Thanks for your attention .
And this software really helps a lot . During development in a support department , shader usually becomes ...
by nothingcat
Thu Nov 15, 2018 3:42 am
Forum: General Discussion
Topic: Custom local variable insert Position In Template Shader
Replies: 6
Views: 9053

Re: Custom local variable insert Position In Template Shader

Thanks for your reply.
The shader template like this(in fragment shader )

/*ase_local_var*/half4 finalRGBA;
/*ase_local_var*/float ndotl;
fixed4 _MainTex_var;
/*ase_local_var*/fixed3 albedo;
/*ase_local_var*/float3 worldPos;
/*ase_local_var*/half3 normalLocal;
/*ase_local_var*/fixed metallic ...
by nothingcat
Thu Nov 01, 2018 7:14 am
Forum: General Discussion
Topic: Custom local variable insert Position In Template Shader
Replies: 6
Views: 9053

Re: Custom local variable insert Position In Template Shader

Copy and paste function in c# script "TemplateLocalVarsNode.cs" .Then get local variable through

Code: Select all

m_localVarsData[ i ].LocalVarName
Directly use it can deal my problem .
by nothingcat
Thu Nov 01, 2018 3:17 am
Forum: General Discussion
Topic: Custom local variable insert Position In Template Shader
Replies: 6
Views: 9053

Custom local variable insert Position In Template Shader

Hi . I meet a problem when I am using Amplify Shader Editor Template Functions .When I was writing template Shader ,I usually use some calculated results as Input pass to a new Function Code .
When I declared a variable like /*ase_local_var*/ float3 tempColor; .
And It was assigned with pre ...