|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.effects.bumpmapping.BumpMappingFactory
public abstract class BumpMappingFactory
The BumpmappingFactory is capable of preparing a Shape3D for Bumpmapping. the underlying methods to calculate tangets/bitangets and to load the appropriate shaders are also public to use them for different perposes.
| Constructor Summary | |
|---|---|
BumpMappingFactory()
|
|
| Method Summary | |
|---|---|
int |
getBiTangentsTextureUnit()
|
int |
getBiTangentsVertexAttribute()
|
Light |
getLight()
|
int |
getNormalMapTextureUnit()
|
protected int |
getStoreIndex1()
|
protected int |
getStoreIndex2()
|
static TangentsFactory |
getTangentsFactory()
|
TangentsFactory.TangentsStoreMode |
getTangentsStoreMode()
|
int |
getTangentsTextureUnit()
|
int |
getTangentsVertexAttribute()
|
static Texture |
loadNormalMap(java.lang.String textureName)
Loads the normal-map-Texture. |
void |
prepareForBumpMapping(Shape3D shape,
java.lang.String normalMapTex)
Prepares the given Shape3D for BumpMapping. |
abstract void |
prepareForBumpMapping(Shape3D shape,
Texture normalMapTex)
Prepares the given Shape3D for BumpMapping. |
void |
setBiTangentsTextureUnit(int textureUnit)
Sets the texture-unit to be used to store the bitangents. |
void |
setBiTangentsVertexAttribute(int vertexAttribIndex)
Sets the vertex-attribute-index to be used to store the bitangents. |
void |
setLight(Light light)
|
void |
setNormalMapTextureUnit(int textureUnit)
Sets the texture-unit to be used for the normal map Texture. |
void |
setTangentsStoreMode(TangentsFactory.TangentsStoreMode mode)
Sets the store-mode for the tangents and bitangents. |
void |
setTangentsTextureUnit(int textureUnit)
Sets the texture-unit to be used to store the tangents. |
void |
setTangentsVertexAttribute(int vertexAttribIndex)
Sets the vertex-attribute-index to be used to store the tangents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BumpMappingFactory()
| Method Detail |
|---|
public static final TangentsFactory getTangentsFactory()
public void setNormalMapTextureUnit(int textureUnit)
textureUnit - public int getNormalMapTextureUnit()
public void setTangentsTextureUnit(int textureUnit)
textureUnit - public int getTangentsTextureUnit()
public void setBiTangentsTextureUnit(int textureUnit)
textureUnit - public int getBiTangentsTextureUnit()
public void setTangentsVertexAttribute(int vertexAttribIndex)
vertexAttribIndex - public int getTangentsVertexAttribute()
public void setBiTangentsVertexAttribute(int vertexAttribIndex)
vertexAttribIndex - public int getBiTangentsVertexAttribute()
public void setTangentsStoreMode(TangentsFactory.TangentsStoreMode mode)
mode - public TangentsFactory.TangentsStoreMode getTangentsStoreMode()
protected int getStoreIndex1()
protected int getStoreIndex2()
public void setLight(Light light)
public Light getLight()
public static Texture loadNormalMap(java.lang.String textureName)
textureName -
public abstract void prepareForBumpMapping(Shape3D shape,
Texture normalMapTex)
throws java.io.IOException
shape - normalMapTex -
java.io.IOException
public final void prepareForBumpMapping(Shape3D shape,
java.lang.String normalMapTex)
throws java.io.IOException
shape - normalMapTex -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||