BlendedFlatColor

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
 
m (Spelling, minor rewording)
Line 1: Line 1:
 
== Description ==
 
== 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.
+
Use this shader when coloring a self illuminated transparent or solid object. It is not affected by scene lighting and does not waste GPU instructions or VRAM on a one color texture.
  
 
== Usage ==
 
== Usage ==
This works well for HUD applications, because it is not affected by lighting.
+
This works well for HUD items, because it is not affected by lighting.
  
 
== ShaderLab - BlendedFlatColor ==
 
== ShaderLab - BlendedFlatColor ==

Revision as of 08:46, 17 March 2006

Description

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

Usage

This works well for HUD items, 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