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

List of all members.

Public Member Functions

 SpecularProperty ()
 SpecularProperty (float intensity, float shinniness, Vector4 color)
override void Update (int timePassed, Effect effect)
 SpecularProperty ()
 SpecularProperty (float intensity, float shinniness, Vector4 color)
override void Update (int timePassed, Effect effect)

Public Attributes

float m_specularIntensity
float m_specularShinniness
Vector4 m_specularColor

Static Public Attributes

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

Detailed Description

Handles specular highlight properties for a shader. This should be used with something that sets the camera position in the shader.


Constructor & Destructor Documentation

Libraries.Shaders.SpecularProperty.SpecularProperty ( )

Default constructor.

Libraries.Shaders.SpecularProperty.SpecularProperty ( float  intensity,
float  shinniness,
Vector4  color 
)

Constructor.

intensity - Intensity of the specular highlight.
shinniness - How shiny the highlight is.
color - Color of the specular highlight.
Libraries.Shaders.SpecularProperty.SpecularProperty ( )

Default constructor.

Libraries.Shaders.SpecularProperty.SpecularProperty ( float  intensity,
float  shinniness,
Vector4  color 
)

Constructor.

intensity - Intensity of the specular highlight.
shinniness - How shiny the highlight is.
color - Color of the specular highlight.

Member Function Documentation

override void Libraries.Shaders.SpecularProperty.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.SpecularProperty.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

static readonly Libraries StringType Libraries::Shaders.SpecularProperty::s_propertyName = new Libraries.StringType("specular_prop") [static]

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