Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Technique::Pass::ShaderParam Struct Reference

#include <technique.h>

Public Types

enum  Semantic {
  EnvColor, CloakingPhase, Damage, Damage4,
  DetailPlane0, DetailPlane1, NumLights, ActiveLightsArray,
  GameTime, Constant, ApparentLightSizeArray
}
 

Public Attributes

std::string name
 
int id
 
Semantic semantic
 
bool optional
 
float value [4]
 

Detailed Description

Definition at line 174 of file technique.h.

Member Enumeration Documentation

Enumerator
EnvColor 

Actually, two parameters in one. EnvColor.rgb holds the color modulating environmental reflections. EnvColor.a holds a mesh-defined, scale-less mip offset into environmental reflections. Scale-less means that it is up to the shader how to interpret. 1.0 is max blur, 0.0 means no blur.

CloakingPhase 

The cloaking phase data CloakingPhase.r holds color phase CloakingPhase.g holds alpha phase CloakingPhase.b holds 1 cloak active, 0 for inactive CloakingPhase.a holds 1 for glass-cloak, 0 for normal cloak Pase 0 means not cloaked, 1 means fully cloaked, in-between means cloaking

Damage 

The amount of damage received by the mesh

Damage4 

The amount of damage received by the mesh as a vec4 (.x=damage)

DetailPlane0 

The mesh's first detail plane normal

DetailPlane1 

The mesh's second detail plane normal

NumLights 

The number of lights activated in the scene

ActiveLightsArray 

The array of active lights

GameTime 

The game time in seconds

Constant 

Not an auto-param, a manual param, with constant value

ApparentLightSizeArray 

LightApparentSizeArray An float4 array with apparent sizes of all lights (only active ones have valid data).

The components each have a different "view" of "apparent size" x : the worldspace size of the light y : cos(angle) where anlgle is the angle formed by the light vector towards the center and the light vector towards the edge of the light source. z : solid angle of the light source in steradians w : reserved

Definition at line 176 of file technique.h.

177  {
183  EnvColor,
184 
193 
195  Damage,
196 
198  Damage4,
199 
201  DetailPlane0,
202 
204  DetailPlane1,
205 
207  NumLights,
208 
211 
213  GameTime,
214 
216  Constant,
217 
231  };

Member Data Documentation

int Technique::Pass::ShaderParam::id

Definition at line 234 of file technique.h.

std::string Technique::Pass::ShaderParam::name

Definition at line 233 of file technique.h.

Referenced by GameUnit< UnitType >::applyTechniqueOverrides().

bool Technique::Pass::ShaderParam::optional

Definition at line 236 of file technique.h.

Semantic Technique::Pass::ShaderParam::semantic

Definition at line 235 of file technique.h.

float Technique::Pass::ShaderParam::value[4]

Definition at line 237 of file technique.h.

Referenced by GameUnit< UnitType >::applyTechniqueOverrides().


The documentation for this struct was generated from the following file: