BlendedFlatColor

From Unify Community Wiki
Revision as of 02:46, 17 March 2006 by 24.22.40.134 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Use this shader when coloring a self illuminating transparent or solid object. It is not affected by scene lighting and does not wast GPU instructions or VRAM on a one color texture.

Usage

This works well for HUD applications, because it is not affected by lighting.

ShaderLab - BlendedFlatColor

<shaderlab> Shader "BlendedFlatColor" { Properties { _Color ("Main Color, Alpha", Color) = (1,1,1,1) } Category { ZWrite Off Lighting Off Tags {Queue=Transparent} Blend SrcAlpha OneMinusSrcAlpha Color [_Color] SubShader { Pass { Cull Off } } } }</shaderlab>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox