Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public setAmbientColor ( Color color ) : void | ||
color | Color | |
Результат | void |
public setAreaDirectionalLightDirection ( Vector3 lightDir ) : void | ||
lightDir | Vector3 | |
Результат | void |
public setClearColor ( Color color ) : void | ||
color | Color | |
Результат | void |
public setLightIntensity ( float intensity ) : void | ||
intensity | float | |
Результат | void |
public setLightPosition ( Vector3 lightPosition ) : void | ||
lightPosition | Vector3 | |
Результат | void |
public setLightRadius ( float radius ) : void | ||
radius | float | |
Результат | void |
public setNormalMap ( Microsoft.Xna.Framework.Graphics.Texture2D normalMap ) : void | ||
normalMap | Microsoft.Xna.Framework.Graphics.Texture2D | |
Результат | void |
public setObjectToWorldMatrix ( Matrix objToWorld ) : void | ||
objToWorld | Matrix | |
Результат | void |
public setProjectionMatrix ( Matrix projection ) : void | ||
projection | Matrix | |
Результат | void |
public setScreenToWorld ( Matrix screenToWorld ) : void | ||
screenToWorld | Matrix | screenToWorld. |
Результат | void |
public setSpecularIntensity ( float specIntensity ) : void | ||
specIntensity | float | |
Результат | void |
public setSpecularPower ( float specPower ) : void | ||
specPower | float | |
Результат | void |
public setSpotConeAngle ( float coneAngle ) : void | ||
coneAngle | float | |
Результат | void |
public setSpotLightDirection ( Vector2 lightDirection ) : void | ||
lightDirection | Vector2 | Light direction. |
Результат | void |
public setSpotLightDirection ( float degrees ) : void | ||
degrees | float | Degrees. |
Результат | void |
public setWorldToViewMatrix ( Matrix worldToView ) : void | ||
worldToView | Matrix | |
Результат | void |
public updateForCamera ( Camera camera ) : void | ||
camera | Camera | Camera. |
Результат | void |
public updateForLight ( |
||
light | Light. | |
Результат | void |
public updateForLight ( |
||
light | Light. | |
Результат | void |
public updateForLight ( |
||
light | Light. | |
Результат | void |
public updateForLight ( |
||
light | Light. | |
Результат | void |
public updateForLight ( SpotLight light ) : void | ||
light | SpotLight | Light. |
Результат | void |