Method | Description | |
---|---|---|
DeferredLightEffect ( ) : System | ||
prepareClearGBuffer ( ) : void | ||
prepareForFinalCombine ( Microsoft.Xna.Framework.Graphics.Texture2D diffuse, Microsoft.Xna.Framework.Graphics.Texture2D lightMap, Microsoft.Xna.Framework.Graphics.Texture2D normalMap ) : void |
sets the two textures required for the final combine and applies the pass
|
|
setAmbientColor ( Color color ) : void | ||
setAreaDirectionalLightDirection ( Vector3 lightDir ) : void | ||
setClearColor ( Color color ) : void | ||
setColor ( Color color ) : void | ||
setLightIntensity ( float intensity ) : void | ||
setLightPosition ( Vector3 lightPosition ) : void | ||
setLightRadius ( float radius ) : void | ||
setNormalMap ( Microsoft.Xna.Framework.Graphics.Texture2D normalMap ) : void | ||
setObjectToWorldMatrix ( Matrix objToWorld ) : void | ||
setProjectionMatrix ( Matrix projection ) : void | ||
setScreenToWorld ( Matrix screenToWorld ) : void |
inverse of Camera.getViewProjectionMatrix
|
|
setSpecularIntensity ( float specIntensity ) : void | ||
setSpecularPower ( float specPower ) : void | ||
setSpotConeAngle ( float coneAngle ) : void | ||
setSpotLightDirection ( Vector2 lightDirection ) : void |
directly sets the light direction
|
|
setSpotLightDirection ( float degrees ) : void |
sets the light direction using just an angle in degrees. 0 degrees points to theright, 90 degrees would be straight down, etc
|
|
setWorldToViewMatrix ( Matrix worldToView ) : void | ||
updateForCamera ( Camera camera ) : void |
updates the camera matrixes in the Effect
|
|
updateForLight ( |
updates the shader values for the light and sets the appropriate CurrentTechnique
|
|
updateForLight ( |
updates the shader values for the light and sets the appropriate CurrentTechnique
|
|
updateForLight ( |
updates the shader values for the light and sets the appropriate CurrentTechnique
|
|
updateForLight ( |
updates the shader values for the light and sets the appropriate CurrentTechnique
|
|
updateForLight ( SpotLight light ) : void |
updates the shader values for the light and sets the appropriate CurrentTechnique
|
Method | Description | |
---|---|---|
cacheEffectParameters ( ) : void |
public prepareForFinalCombine ( Microsoft.Xna.Framework.Graphics.Texture2D diffuse, Microsoft.Xna.Framework.Graphics.Texture2D lightMap, Microsoft.Xna.Framework.Graphics.Texture2D normalMap ) : void | ||
diffuse | Microsoft.Xna.Framework.Graphics.Texture2D | Diffuse. |
lightMap | Microsoft.Xna.Framework.Graphics.Texture2D | Light map. |
normalMap | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | void |
public setAmbientColor ( Color color ) : void | ||
color | Color | |
return | void |
public setAreaDirectionalLightDirection ( Vector3 lightDir ) : void | ||
lightDir | Vector3 | |
return | void |
public setLightIntensity ( float intensity ) : void | ||
intensity | float | |
return | void |
public setLightPosition ( Vector3 lightPosition ) : void | ||
lightPosition | Vector3 | |
return | void |
public setLightRadius ( float radius ) : void | ||
radius | float | |
return | void |
public setNormalMap ( Microsoft.Xna.Framework.Graphics.Texture2D normalMap ) : void | ||
normalMap | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | void |
public setObjectToWorldMatrix ( Matrix objToWorld ) : void | ||
objToWorld | Matrix | |
return | void |
public setProjectionMatrix ( Matrix projection ) : void | ||
projection | Matrix | |
return | void |
public setScreenToWorld ( Matrix screenToWorld ) : void | ||
screenToWorld | Matrix | screenToWorld. |
return | void |
public setSpecularIntensity ( float specIntensity ) : void | ||
specIntensity | float | |
return | void |
public setSpecularPower ( float specPower ) : void | ||
specPower | float | |
return | void |
public setSpotConeAngle ( float coneAngle ) : void | ||
coneAngle | float | |
return | void |
public setSpotLightDirection ( Vector2 lightDirection ) : void | ||
lightDirection | Vector2 | Light direction. |
return | void |
public setSpotLightDirection ( float degrees ) : void | ||
degrees | float | Degrees. |
return | void |
public setWorldToViewMatrix ( Matrix worldToView ) : void | ||
worldToView | Matrix | |
return | void |
public updateForCamera ( Camera camera ) : void | ||
camera | Camera | Camera. |
return | void |
public updateForLight ( |
||
light | Light. | |
return | void |
public updateForLight ( |
||
light | Light. | |
return | void |
public updateForLight ( |
||
light | Light. | |
return | void |
public updateForLight ( |
||
light | Light. | |
return | void |
public updateForLight ( SpotLight light ) : void | ||
light | SpotLight | Light. |
return | void |