C# Class GameCommon.ShaderBaseMaterial

Inheritance: HighLevelMaterial
Show file Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Property Type Description
ClearBaseMaterial void
CreateDefaultTechnique bool
CreateFixedPipelineTechnique void
FixedPipelineAddDiffuseMapsToPass void
GenerateTexCoordString void
InitializeAndUpdateDynamicGpuParameters void
InitializeAndUpdateMapTransformGpuParameters void
IsDynamicDiffuseScale bool
IsDynamicEmissionScale bool
IsDynamicReflectionScale bool
IsDynamicSpecularScaleAndShininess bool
Pass_RenderObjectPass void
PreloadTexture void
SceneManager_FogChanged void
SceneManager_ShadowSettingsChanged void
SetCustomGpuParameter void
SubscribePassToRenderObjectPassEvent void
UpdateDynamicDiffuseScaleGpuParameter void
UpdateDynamicEmissionScaleGpuParameter void
UpdateDynamicReflectionScaleGpuParameter void
UpdateDynamicSpecularScaleAndShininessGpuParameter void
UpdateFadingByDistanceRangeGpuParameter void
UpdateMapTransformForFixedPipeline void
UpdateMapTransformGpuParameters void
UpdateReflectionCubemap void

Public Methods

Method Description
Dispose ( ) : void
IsDefaultTechniqueCreated ( ) : bool
ShaderBaseMaterial ( ) : System

Protected Methods

Method Description
OnAddCompileArguments ( StringBuilder arguments ) : void
OnClearBaseMaterial ( ) : void
OnClone ( HighLevelMaterial sourceMaterial ) : void
OnGetEditorShowInformation ( string &lines, ColorValue &color ) : void
OnGetExtensionFileName ( ) : string
OnInitBaseMaterial ( ) : bool
OnIsNeedSpecialShadowCasterMaterial ( ) : bool
OnLoad ( TextBlock block ) : bool
OnPreloadResources ( ) : void
OnSave ( TextBlock block ) : void
OnSetProgramAutoConstants ( GpuProgramParameters parameters, int lightCount ) : void

Private Methods

Method Description
ClearBaseMaterial ( ) : void
CreateDefaultTechnique ( bool &shadersIsNotSupported ) : bool
CreateFixedPipelineTechnique ( ) : void
FixedPipelineAddDiffuseMapsToPass ( Pass pass ) : void
GenerateTexCoordString ( StringBuilder builder, int texCoord, TransformItem transformItem, string transformGpuParameterNamePrefix ) : void
InitializeAndUpdateDynamicGpuParameters ( ) : void
InitializeAndUpdateMapTransformGpuParameters ( MapItem map ) : void
IsDynamicDiffuseScale ( ) : bool
IsDynamicEmissionScale ( ) : bool
IsDynamicReflectionScale ( ) : bool
IsDynamicSpecularScaleAndShininess ( ) : bool
Pass_RenderObjectPass ( Pass pass, Vec3 objectWorldPosition ) : void
PreloadTexture ( string textureName ) : void
SceneManager_FogChanged ( bool fogModeChanged ) : void
SceneManager_ShadowSettingsChanged ( bool shadowTechniqueChanged ) : void
SetCustomGpuParameter ( GpuParameters parameter, Vec4 value ) : void
SubscribePassToRenderObjectPassEvent ( Pass pass ) : void
UpdateDynamicDiffuseScaleGpuParameter ( ) : void
UpdateDynamicEmissionScaleGpuParameter ( ) : void
UpdateDynamicReflectionScaleGpuParameter ( ) : void
UpdateDynamicSpecularScaleAndShininessGpuParameter ( ) : void
UpdateFadingByDistanceRangeGpuParameter ( ) : void
UpdateMapTransformForFixedPipeline ( MapItem map ) : void
UpdateMapTransformGpuParameters ( MapItem map ) : void
UpdateReflectionCubemap ( TextureUnitState textureUnitState, Vec3 objectWorldPosition ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

IsDefaultTechniqueCreated() public method

public IsDefaultTechniqueCreated ( ) : bool
return bool

OnAddCompileArguments() protected method

protected OnAddCompileArguments ( StringBuilder arguments ) : void
arguments StringBuilder
return void

OnClearBaseMaterial() protected method

protected OnClearBaseMaterial ( ) : void
return void

OnClone() protected method

protected OnClone ( HighLevelMaterial sourceMaterial ) : void
sourceMaterial HighLevelMaterial
return void

OnGetEditorShowInformation() protected method

protected OnGetEditorShowInformation ( string &lines, ColorValue &color ) : void
lines string
color ColorValue
return void

OnGetExtensionFileName() protected method

protected OnGetExtensionFileName ( ) : string
return string

OnInitBaseMaterial() protected method

protected OnInitBaseMaterial ( ) : bool
return bool

OnIsNeedSpecialShadowCasterMaterial() protected method

protected OnIsNeedSpecialShadowCasterMaterial ( ) : bool
return bool

OnLoad() protected method

protected OnLoad ( TextBlock block ) : bool
block TextBlock
return bool

OnPreloadResources() protected method

protected OnPreloadResources ( ) : void
return void

OnSave() protected method

protected OnSave ( TextBlock block ) : void
block TextBlock
return void

OnSetProgramAutoConstants() protected method

protected OnSetProgramAutoConstants ( GpuProgramParameters parameters, int lightCount ) : void
parameters GpuProgramParameters
lightCount int
return void

ShaderBaseMaterial() public method

public ShaderBaseMaterial ( ) : System
return System