public final class MeshLambertMaterial extends Material implements HasMaterialMap, HasWrap, HasWireframe, HasFog, HasVertexColors, HasSkinning, HasAmbientEmissiveColor, HasShading
Material.BLENDING, Material.COLORS, Material.SHADING, Material.SIDE
Constructor and Description |
---|
MeshLambertMaterial() |
Modifier and Type | Method and Description |
---|---|
MeshLambertMaterial |
clone() |
Texture |
getAlphaMap() |
Color |
getAmbient()
Gets Ambient color
|
Shader |
getAssociatedShader() |
Color |
getColor()
Gets material color
|
Texture.OPERATIONS |
getCombine() |
Color |
getEmissive()
Gets Emissive color
|
Texture |
getEnvMap()
Gets environmental texture
|
Texture |
getLightMap() |
Texture |
getMap() |
int |
getNumSupportedMorphNormals() |
int |
getNumSupportedMorphTargets() |
double |
getReflectivity()
Gets reflectivity
|
double |
getRefractionRatio()
Gets Refraction Ratio
|
Material.SHADING |
getShading() |
Texture |
getSpecularMap() |
int |
getWireframeLineWidth() |
Vector3 |
getWrapRGB() |
boolean |
isFog()
Define whether the material color is affected by global fog settings.
|
boolean |
isMorphNormals() |
boolean |
isMorphTargets() |
boolean |
isSkinning() |
Material.COLORS |
isVertexColors()
Get how the vertices gets colored.
|
boolean |
isWireframe() |
boolean |
isWrapAround() |
void |
refreshUniforms(Camera camera,
boolean isGammaInput) |
void |
setAlphaMap(Texture alphaMap) |
void |
setAmbient(Color ambient)
Sets Ambient color
|
void |
setColor(Color color)
Sets material color
|
void |
setCombine(Texture.OPERATIONS combine) |
void |
setEmissive(Color emissive)
Sets Emissive color
|
void |
setEnvMap(Texture envMap)
Sets environmental texture
|
void |
setFog(boolean fog) |
void |
setLightMap(Texture lightMap) |
void |
setMap(Texture map) |
void |
setMorphNormals(boolean isMorphNormals) |
void |
setMorphTargets(boolean isMorphTargets) |
void |
setNumSupportedMorphNormals(int num) |
void |
setNumSupportedMorphTargets(int num) |
void |
setReflectivity(double reflectivity)
Sets reflectivity
|
void |
setRefractionRatio(double refractionRatio)
Sets Refraction Ratio
|
void |
setShading(Material.SHADING shading) |
void |
setSkinning(boolean isSkinning) |
void |
setSpecularMap(Texture specularMap) |
void |
setVertexColors(Material.COLORS vertexColors)
Define how the vertices gets colored.
|
void |
setWireframe(boolean wireframe) |
void |
setWireframeLineWidth(int wireframeLineWidth) |
void |
setWrapAround(boolean wrapAround) |
void |
setWrapRGB(Vector3 wrapRGB) |
bufferGuessUVType, bufferGuessVertexColorType, buildShader, clone, deallocate, getAlphaTest, getBlendDst, getBlendEquation, getBlending, getBlendSrc, getBufferMaterial, getId, getName, getOpacity, getPolygonOffsetFactor, getPolygonOffsetUnits, getShader, getSides, isDepthTest, isDepthWrite, isNeedsUpdate, isPolygonOffset, isShadowPass, isTransparent, isVisible, materialNeedsSmoothNormals, setAlphaTest, setBlendDst, setBlendEquation, setBlending, setBlendSrc, setDepthTest, setDepthWrite, setName, setNeedsUpdate, setOpacity, setPolygonOffset, setPolygonOffsetFactor, setPolygonOffsetUnits, setShader, setShadowPass, setSide, setTransparent, setVisible, toString, updateProgramParameters
public Shader getAssociatedShader()
public boolean isWrapAround()
isWrapAround
in interface HasWrap
public void setWrapAround(boolean wrapAround)
setWrapAround
in interface HasWrap
public Vector3 getWrapRGB()
getWrapRGB
in interface HasWrap
public void setWrapRGB(Vector3 wrapRGB)
setWrapRGB
in interface HasWrap
public boolean isWireframe()
isWireframe
in interface HasWireframe
public void setWireframe(boolean wireframe)
setWireframe
in interface HasWireframe
public int getWireframeLineWidth()
getWireframeLineWidth
in interface HasWireframe
public void setWireframeLineWidth(int wireframeLineWidth)
setWireframeLineWidth
in interface HasWireframe
public Texture getEnvMap()
HasEnvMap
public void setEnvMap(Texture envMap)
HasEnvMap
public Texture getAlphaMap()
getAlphaMap
in interface HasAlphaMap
public void setAlphaMap(Texture alphaMap)
setAlphaMap
in interface HasAlphaMap
public Texture.OPERATIONS getCombine()
getCombine
in interface HasEnvMap
public void setCombine(Texture.OPERATIONS combine)
setCombine
in interface HasEnvMap
public double getReflectivity()
HasEnvMap
getReflectivity
in interface HasEnvMap
public void setReflectivity(double reflectivity)
HasEnvMap
setReflectivity
in interface HasEnvMap
reflectivity
- the reflectivity valuepublic double getRefractionRatio()
HasEnvMap
getRefractionRatio
in interface HasEnvMap
public void setRefractionRatio(double refractionRatio)
HasEnvMap
setRefractionRatio
in interface HasEnvMap
public Texture getLightMap()
getLightMap
in interface HasLightMap
public void setLightMap(Texture lightMap)
setLightMap
in interface HasLightMap
public boolean isFog()
HasFog
public void setColor(Color color)
HasColor
public Material.COLORS isVertexColors()
HasVertexColors
Material.COLORS
NO.isVertexColors
in interface HasVertexColors
public void setVertexColors(Material.COLORS vertexColors)
HasVertexColors
Material.COLORS
. Default is Material.COLORS
NO.setVertexColors
in interface HasVertexColors
public boolean isSkinning()
isSkinning
in interface HasSkinning
public void setSkinning(boolean isSkinning)
setSkinning
in interface HasSkinning
public boolean isMorphTargets()
isMorphTargets
in interface HasSkinning
public void setMorphTargets(boolean isMorphTargets)
setMorphTargets
in interface HasSkinning
public boolean isMorphNormals()
isMorphNormals
in interface HasSkinning
public void setMorphNormals(boolean isMorphNormals)
setMorphNormals
in interface HasSkinning
public Color getAmbient()
HasAmbientEmissiveColor
getAmbient
in interface HasAmbientEmissiveColor
public void setAmbient(Color ambient)
HasAmbientEmissiveColor
setAmbient
in interface HasAmbientEmissiveColor
ambient
- the color.public Color getEmissive()
HasAmbientEmissiveColor
getEmissive
in interface HasAmbientEmissiveColor
public void setEmissive(Color emissive)
HasAmbientEmissiveColor
setEmissive
in interface HasAmbientEmissiveColor
emissive
- the colorpublic int getNumSupportedMorphTargets()
getNumSupportedMorphTargets
in interface HasSkinning
public void setNumSupportedMorphTargets(int num)
setNumSupportedMorphTargets
in interface HasSkinning
public int getNumSupportedMorphNormals()
getNumSupportedMorphNormals
in interface HasSkinning
public void setNumSupportedMorphNormals(int num)
setNumSupportedMorphNormals
in interface HasSkinning
public Texture getSpecularMap()
getSpecularMap
in interface HasSpecularMap
public void setSpecularMap(Texture specularMap)
setSpecularMap
in interface HasSpecularMap
public Material.SHADING getShading()
getShading
in interface HasShading
public void setShading(Material.SHADING shading)
setShading
in interface HasShading
public MeshLambertMaterial clone()
public void refreshUniforms(Camera camera, boolean isGammaInput)
refreshUniforms
in class Material