- Home /
Question by
Will Cassella · Oct 17, 2012 at 06:17 AM ·
shadertext3dtextsse
Custom text shader in Strumpy Shader Editor
I'm trying to apply special shader effects on a 3dText object using a custom shader I've written in SSE, but I'm stumped on how to make the text texture work with the 3dtext object. I've found this code:
Shader "Custom/text shader test"
{
Properties
{
_MainTex ("Font Texture", 2D) = "white" {}
_Color ("Text Color", Color) = (1,1,1,1)
}
SubShader
{
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
Lighting Off Cull Off ZWrite Off Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass {
Color [_Color]
SetTexture [_MainTex]
{
combine primary, texture * primary
}
}
}
}`
which works as a replacement for the built-in text shader. Basically what i'm asking is, could someone translate the above code into a SSE graph? I'm utterly STRUMPED. Thanks in advance!
Comment