public final class MeshPhongMaterial extends Material implements HasMaterialMap, HasBumpMap, HasNormalMap, HasWrap, HasWireframe, HasFog, HasVertexColors, HasSkinning, HasAmbientEmissiveColor, HasShading, HasRaytracingMirror, HasRaytracingGlass
Material.BLENDING, Material.COLORS, Material.SHADING, Material.SIDE
Constructor and Description |
---|
MeshPhongMaterial() |
Modifier and Type | Method and Description |
---|---|
MeshPhongMaterial |
clone() |
Texture |
getAlphaMap() |
Color |
getAmbient()
Gets Ambient color
|
Shader |
getAssociatedShader() |
Texture |
getBumpMap() |
double |
getBumpScale() |
Color |
getColor()
Gets material color
|
Texture.OPERATIONS |
getCombine() |
Color |
getEmissive()
Gets Emissive color
|
Texture |
getEnvMap()
Gets environmental texture
|
Texture |
getLightMap() |
Texture |
getMap() |
Texture |
getNormalMap() |
Vector2 |
getNormalScale() |
int |
getNumSupportedMorphNormals() |
int |
getNumSupportedMorphTargets() |
double |
getReflectivity()
Gets reflectivity
|
double |
getRefractionRatio()
Gets Refraction Ratio
|
Material.SHADING |
getShading() |
double |
getShininess() |
Color |
getSpecular() |
Texture |
getSpecularMap() |
int |
getWireframeLineWidth() |
Vector3 |
getWrapRGB() |
boolean |
isFog()
Define whether the material color is affected by global fog settings.
|
boolean |
isGlass() |
boolean |
isMetal() |
boolean |
isMirror() |
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 |
setBumpMap(Texture bumpMap) |
void |
setBumpScale(double bumpScale) |
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 |
setGlass(boolean isGlass) |
void |
setLightMap(Texture lightMap) |
void |
setMap(Texture map) |
void |
setMetal(boolean isMetal) |
void |
setMirror(boolean isMirror) |
void |
setMorphNormals(boolean isMorphNormals) |
void |
setMorphTargets(boolean isMorphTargets) |
void |
setNormalMap(Texture normalMap) |
void |
setNormalScale(Vector2 normalScale) |
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 |
setShininess(double shininess) |
void |
setSkinning(boolean isSkinning) |
void |
setSpecular(Color specular) |
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 Color getSpecular()
public void setSpecular(Color specular)
public double getShininess()
public void setShininess(double shininess)
public boolean isMetal()
public void setMetal(boolean isMetal)
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.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 Texture getAlphaMap()
getAlphaMap
in interface HasAlphaMap
public void setAlphaMap(Texture alphaMap)
setAlphaMap
in interface HasAlphaMap
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 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 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 Texture getSpecularMap()
getSpecularMap
in interface HasSpecularMap
public void setSpecularMap(Texture specularMap)
setSpecularMap
in interface HasSpecularMap
public Texture getBumpMap()
getBumpMap
in interface HasBumpMap
public void setBumpMap(Texture bumpMap)
setBumpMap
in interface HasBumpMap
public double getBumpScale()
getBumpScale
in interface HasBumpMap
public void setBumpScale(double bumpScale)
setBumpScale
in interface HasBumpMap
public Texture getNormalMap()
getNormalMap
in interface HasNormalMap
public void setNormalMap(Texture normalMap)
setNormalMap
in interface HasNormalMap
public Vector2 getNormalScale()
getNormalScale
in interface HasNormalMap
public void setNormalScale(Vector2 normalScale)
setNormalScale
in interface HasNormalMap
public Material.SHADING getShading()
getShading
in interface HasShading
public void setShading(Material.SHADING shading)
setShading
in interface HasShading
public boolean isGlass()
isGlass
in interface HasRaytracingGlass
public void setGlass(boolean isGlass)
setGlass
in interface HasRaytracingGlass
public boolean isMirror()
isMirror
in interface HasRaytracingMirror
public void setMirror(boolean isMirror)
setMirror
in interface HasRaytracingMirror
public MeshPhongMaterial clone()
public void refreshUniforms(Camera camera, boolean isGammaInput)
refreshUniforms
in class Material