AlphaSelfIllum

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
  
  
==ShaderLab - VegetationVertexLit.shader==
+
==ShaderLab - AlphaSelfIllum.shader==
 
<shaderlab>
 
<shaderlab>
 
Shader "My Shaders/AlphaSelfIllum" {
 
Shader "My Shaders/AlphaSelfIllum" {

Revision as of 07:54, 8 April 2006

Author: Bill Vinton (Sync1B)

Description

Self illuminating alpha texture

This shader is good for any object thats not affected by lighting and needs alpha.


Usage

Good for 3D UI elements.


ShaderLab - AlphaSelfIllum.shader

<shaderlab> Shader "My Shaders/AlphaSelfIllum" { Properties { _Color ("Color Tint", Color) = (1,1,1,1) _MainTex ("SelfIllum Color (RGB) Alpha (A)", 2D) = "white" } Category { Lighting On ZWrite Off Cull Back Blend SrcAlpha OneMinusSrcAlpha Tags {Queue=Transparent} SubShader {

           Material {

Emission [_Color]

           }
           Pass {

SetTexture [_MainTex] { Combine Texture * Primary, Texture * Primary

               }
           }
       } 
   }

} </shaderlab>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox