GBufferConditionerGLSL
Engine/source/lighting/advanced/glsl/gBufferConditionerGLSL.h
Public Types
enum
NormalSpace { WorldSpace ViewSpace }
enum
NormalStorage { CartesianXYZ CartesianXY Spherical LambertAzimuthal }
Private Types
Parent
Protected Attributes
Public Functions
GBufferConditionerGLSL(const GFXFormat bufferFormat, const NormalSpace nrmSpace)
Returns the resource requirements of this feature based on what other features are present.
processPix(Vector< ShaderComponent * > & componentList, const MaterialFeatureData & fd)
processVert(Vector< ShaderComponent * > & componentList, const MaterialFeatureData & fd)
Protected Functions
Var *
_conditionOutput(Var * unconditionedOutput, MultiLine * meta)
GenOp *
_posnegDecode(GenOp * val)
GenOp *
_posnegEncode(GenOp * val)
Var *
_unconditionInput(Var * conditionedInput, MultiLine * meta)
Var *
printMethodHeader(MethodType methodType, const String & methodName, Stream & stream, MultiLine * meta)
Detailed Description
Public Types
NormalSpace
Enumerator
- WorldSpace
- ViewSpace
NormalStorage
Enumerator
- CartesianXYZ
- CartesianXY
- Spherical
- LambertAzimuthal
Private Types
typedef ConditionerFeature Parent
Protected Attributes
U32 mBitsPerChannel
bool mCanWriteNegativeValues
NormalStorage mNormalStorageType
Public Functions
GBufferConditionerGLSL(const GFXFormat bufferFormat, const NormalSpace nrmSpace)
~GBufferConditionerGLSL()
getName()
Reimplemented from: ShaderFeature
getResources(const MaterialFeatureData & fd)
Reimplemented from: ShaderFeature
processPix(Vector< ShaderComponent * > & componentList, const MaterialFeatureData & fd)
Reimplemented from: ShaderFeature
processVert(Vector< ShaderComponent * > & componentList, const MaterialFeatureData & fd)
Reimplemented from: ShaderFeature
Protected Functions
_conditionOutput(Var * unconditionedOutput, MultiLine * meta)
Reimplemented from: ConditionerFeature
_posnegDecode(GenOp * val)
_posnegEncode(GenOp * val)
_unconditionInput(Var * conditionedInput, MultiLine * meta)
Reimplemented from: ConditionerFeature
printMethodHeader(MethodType methodType, const String & methodName, Stream & stream, MultiLine * meta)
Reimplemented from: ConditionerFeature