TextureAdditive

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

Revision as of 07:54, 8 April 2006

Author: Bill Vinton (Sync1B)

Description

Additive texture shader

This shader is good for any object you want to have a additive texture applied.


Usage

Good for powerups, and GUI elements


ShaderLab - TextureAdditive.shader

<shaderlab> Shader "My Shaders/TextureAdditiveShader" {

   Properties {
       _Color ("Main Color, Alpha", Color) = (1,1,1,1)
       _MainTex ("Base (RGB)", 2D) = "white" {}
   }
   Category {
       ZWrite Off
       Lighting On
       Tags {Queue=Transparent}
       Blend One One
       SubShader {
           Pass {
           Cull Back
           Material {
               Emission [_Color]
           }
           SetTexture [_MainTex] {
               Combine texture * primary, texture + primary 
           } 
       }
   }
} 

} </shaderlab>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox