Hi,
Is there a way of exposing the RenderType tag (or any other tag) in user-defined templates (just like when you use a 'surface shader')?
Cheers
teofilobd wrote:Hi Ricardo,
I updated amplify, but the tag option is still not showing up. Do I need to put something else besides the /*ase_tags*/ in the template?
Cheers,
Shader /*ase_name*/ "ASETemplateShaders/Test" /*end*/
{
Properties
{
/*ase_props*/
}
SubShader
{
Tags { }
LOD 100
Cull Back
/*ase_pass*/
Pass
{
CGPROGRAM
#pragma target 3.0
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
/*ase_pragma*/
struct appdata
{
float4 vertex : POSITION;
UNITY_VERTEX_INPUT_INSTANCE_ID
/*ase_vdata:p=p*/
};
struct v2f
{
float4 vertex : SV_POSITION;
UNITY_VERTEX_OUTPUT_STEREO
/*ase_interp(1,7):sp=sp.xyzw*/
};
/*ase_globals*/
v2f vert ( appdata v /*ase_vert_input*/)
{
v2f o;
UNITY_SETUP_INSTANCE_ID(v);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
// ase common template code
/*ase_vert_code:v=appdata;o=v2f*/
v.vertex.xyz += /*ase_vert_out:Local Vertex;Float3*/ float3(0,0,0) /*end*/;
o.vertex = UnityObjectToClipPos(v.vertex);
return o;
}
fixed4 frag (v2f i /*ase_frag_input*/) : SV_Target
{
fixed4 myColorVar;
// ase common template code
/*ase_frag_code:i=v2f*/
myColorVar = /*ase_frag_out:Frag Color;Float4*/fixed4(1,0,0,1)/*end*/;
return myColorVar;
}
ENDCG
}
}
CustomEditor "ASEMaterialInspector"
}
Return to Amplify Shader Editor
Users browsing this forum: No registered users and 3 guests