public class DualTextureEffect extends Effect implements IEffectMatrices, IEffectFog
CurrentTechnique
_parent, Disposing, Name, Tag
Modifier | Constructor and Description |
---|---|
protected |
DualTextureEffect(DualTextureEffect cloneSource)
Creates a new DualTextureEffect by cloning parameter settings from an existing instance.
|
|
DualTextureEffect(GraphicsDevice device)
Creates a new DualTextureEffect with default parameter settings.
|
Modifier and Type | Method and Description |
---|---|
Effect |
Clone()
Creates a clone of the current DualTextureEffect instance.
|
boolean |
FogEnabled() |
float |
getAlpha()
Gets the material alpha which determines its transparency.
|
Vector3 |
getDiffuseColor()
Gets the diffuse color for a material.
|
Vector3 |
getFogColor() |
float |
getFogEnd() |
float |
getFogStart() |
Matrix |
getProjection() |
Texture2D |
getTexture()
Gets the current base texture.
|
Texture2D |
getTexture2()
Gets the current overlay texture.
|
Matrix |
getView()
Gets the view matrix.
|
Matrix |
getWorld()
Gets the world matrix.
|
protected void |
OnApply()
Computes derived parameter values immediately before applying the effect.
|
void |
setAlpha(float value)
Sets the material alpha which determines its transparency.
|
void |
setDiffuseColor(Vector3 value)
Sets the diffuse color for a material, the range of color values is from 0 to 1.
|
void |
setFogColor(Vector3 value) |
void |
setFogEnabled(boolean value) |
void |
setFogEnd(float value) |
void |
setFogStart(float value) |
void |
setProjection(Matrix value) |
void |
setTexture(Texture2D value)
Sets the current base texture.
|
void |
setTexture2(Texture2D value)
Sets the current overlay texture.
|
void |
setView(Matrix value)
Sets the view matrix.
|
void |
setWorld(Matrix value)
Sets the world matrix.
|
Dispose, getParameters, getTechniques
Dispose, finalize, getGraphicsDevice, IsDisposed, raise_disposing, toString
protected DualTextureEffect(DualTextureEffect cloneSource)
cloneSource
- The object to clone.public DualTextureEffect(GraphicsDevice device)
device
- The graphics device.public float getAlpha()
public void setAlpha(float value)
value
- The new alpha value.public Vector3 getDiffuseColor()
public void setDiffuseColor(Vector3 value)
value
- The new diffuse color.public Vector3 getFogColor()
getFogColor
in interface IEffectFog
public void setFogColor(Vector3 value)
setFogColor
in interface IEffectFog
public boolean FogEnabled()
FogEnabled
in interface IEffectFog
public void setFogEnabled(boolean value)
setFogEnabled
in interface IEffectFog
public float getFogEnd()
getFogEnd
in interface IEffectFog
public void setFogEnd(float value)
setFogEnd
in interface IEffectFog
public float getFogStart()
getFogStart
in interface IEffectFog
public void setFogStart(float value)
setFogStart
in interface IEffectFog
public Matrix getProjection()
getProjection
in interface IEffectMatrices
public void setProjection(Matrix value)
setProjection
in interface IEffectMatrices
public Texture2D getTexture()
public void setTexture(Texture2D value)
value
- The new base texture.public Texture2D getTexture2()
public void setTexture2(Texture2D value)
value
- The new overlay texture.public Matrix getView()
getView
in interface IEffectMatrices
public void setView(Matrix value)
setView
in interface IEffectMatrices
value
- The new view matrix.public Matrix getWorld()
getWorld
in interface IEffectMatrices
public void setWorld(Matrix value)
setWorld
in interface IEffectMatrices
value
- The new world matrix.protected void OnApply()