TextureAdditive

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
Author: Bill Vinton (Sync1B)
 
Author: Bill Vinton (Sync1B)
 
==Description==
 
==Description==
[[Image:AdditiveTexture.jpg|thumb|Simple additive texture shader]]
+
[[Image:AdditiveTexture.jpg|thumb|Additive texture shader]]
 
This shader is good for any object you want to have a additive texture applied.
 
This shader is good for any object you want to have a additive texture applied.
  

Revision as of 04:49, 7 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 - VegetationVertexLit.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