Cogito, ergo sum

UE2:HardwareShader (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
(Redirected from UE2:SConstant (U2))
Jump to: navigation, search
U2 Object >> Material >> RenderedMaterial >> HardwareShader
Package: 
Engine

null

Properties[edit]

Property group 'HardwareShader'[edit]

AlphaBlending[edit]

Type: int

Array size: 4


AlphaRef[edit]

Type: byte

Array size: 4


AlphaTest[edit]

Type: int

Array size: 4


DestBlend[edit]

Type: byte

Array size: 16


NumPasses[edit]

Type: int


Default value: 1

PixelShaderText[edit]

Type: string

Array size: 4


PSConstants[edit]

Type: SConstantsInfo

Array size: 32


SrcBlend[edit]

Type: byte

Array size: 16


StreamMapping[edit]

Type: array<int>

Indexed array of where the streams will show up if StreamMapping[0] == NORMAL then v0 will contain the vertex normal

Textures[edit]

Type: Texture

Array size: 32


VertexShaderText[edit]

Type: string

Array size: 4


VSConstants[edit]

Type: SConstantsInfo

Array size: 200


ZTest[edit]

Type: int

Array size: 4


ZWrite[edit]

Type: int

Array size: 4


Internal variables[edit]

PixelShader[edit]

Type: int

Array size: 4

Modifiers: transient, const


VertexShader[edit]

Type: int

Array size: 4

Modifiers: transient, const


Enums[edit]

SConstant[edit]

EVC_Unused 
This constant isn't used by the shader and does not need to be updated
EVC_MaterialDefined 
The constant is defined by by the Value member of FVSConstantsInfo
EVC_ViewProjMatrix 
The constant, and the three constants after it will contain the view projection matrix
EVC_WorldViewProjMatrix 
EVC_WorldMatrix 
EVC_InvViewMatrix 
The constant, and the three constants after it will contain the inverse view matrix
EVC_ViewMatrix 
The constant, and the three constants after it will contain the view matrix
EVC_InvWorldMatrix 
EVC_Time 
Time, cycled over 120 seconds
EVC_CosTime 
EVC_SinTime 
EVC_TanTime 
EVC_Eye 
EVC_XYCircle 
EVC_NearestLightPos1 
EVC_InvLightRadius1 
EVC_NearestLightPos2 
EVC_InvLightRadius2 
EVC_LightColor1 
EVC_LightColor2 
EVC_Max 

Structs[edit]

SConstantsInfo[edit]

Used to specify constants for a vertex shader.

SConstant Type 
Object.Plane Value