C#Code
C#Code
Public Member Functions | Public Attributes | Static Public Attributes
Libraries.Shaders.DiffuseProperty Class Reference
Inheritance diagram for Libraries.Shaders.DiffuseProperty:
Libraries.Shaders.BaseShaderProperty Libraries.Shaders.BaseShaderProperty

List of all members.

Public Member Functions

 DiffuseProperty ()
 DiffuseProperty (float intensity, Vector4 color, Vector3 lightDir)
 DiffuseProperty (float intensity, Vector4 color, Vector3 lightDir, String intensityID, String colorID, String directionID)
void DiffuceIntensity (float intensity)
override void Update (int timePassed, Effect effect)
 DiffuseProperty ()
 DiffuseProperty (float intensity, Vector4 color, Vector3 lightDir)
override void Update (int timePassed, Effect effect)

Public Attributes

float m_diffuseIntensity
Vector4 m_diffuseColor
Vector3 m_diffuseLightDir
String m_colorID = "DiffuseColor1"
 String ID used when setting the color in the shader.
String m_directionID = "DiffuseLightDirection1"
 String ID used when setting the light direction in the shader.
String m_intensityID = "DiffuseIntensity1"
 String ID used when setting the light intensity in the shader.

Static Public Attributes

static readonly
Libraries.StringType 
s_propertyName = new Libraries.StringType("diffuse_prop")

Detailed Description

Handles diffuse highlight properties for a shader.


Constructor & Destructor Documentation

Libraries.Shaders.DiffuseProperty.DiffuseProperty ( )

Default constructor.

Libraries.Shaders.DiffuseProperty.DiffuseProperty ( float  intensity,
Vector4  color,
Vector3  lightDir 
)

Constructor.

intensity - Intensity of the diffuse highlight.
color - Color of the diffuse light.
lightDir - Light direction.
Libraries.Shaders.DiffuseProperty.DiffuseProperty ( float  intensity,
Vector4  color,
Vector3  lightDir,
String  intensityID,
String  colorID,
String  directionID 
)

Constructor.

intensity - Intensity of the diffuse highlight.
color - Color of the diffuse light.
lightDir - Light direction.
intensityID - ID to use when setting the intensity in the actual shader.
colorID - ID to use when setting the color in the actual shader.
directionID - ID to use when setting the light direction in the actual shader.
Libraries.Shaders.DiffuseProperty.DiffuseProperty ( )

Default constructor.

Libraries.Shaders.DiffuseProperty.DiffuseProperty ( float  intensity,
Vector4  color,
Vector3  lightDir 
)

Constructor.

intensity - Intensity of the diffuse highlight.
color - Color of the diffuse highlight.
lightDir - Light direction.

Member Function Documentation

void Libraries.Shaders.DiffuseProperty.DiffuceIntensity ( float  intensity)

Set diffuse intensity to the given value. How bright direct light is.

intensity - Intensity of the diffuse light.
override void Libraries.Shaders.DiffuseProperty.Update ( int  timePassed,
Effect  effect 
) [virtual]

Update the effect.

timePassed - How long has passed since the previous update.
effect - Effect to update.

Reimplemented from Libraries.Shaders.BaseShaderProperty.

override void Libraries.Shaders.DiffuseProperty.Update ( int  timePassed,
Effect  effect 
) [virtual]

Update the effect.

timePassed - How long has passed since the previous update.
effect - Effect to update.

Reimplemented from Libraries.Shaders.BaseShaderProperty.


Member Data Documentation

String ID used when setting the color in the shader.

String Libraries.Shaders.DiffuseProperty.m_directionID = "DiffuseLightDirection1"

String ID used when setting the light direction in the shader.

String ID used when setting the light intensity in the shader.

static readonly Libraries StringType Libraries::Shaders.DiffuseProperty::s_propertyName = new Libraries.StringType("diffuse_prop") [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties