public class MeshBasicMaterial extends Material implements HasMaterialMap, HasWireframe, HasFog, HasVertexColors, HasSkinning, HasShading
The default will render as flat polygons. To draw the mesh as wireframe, simply set setWireframe(boolean)
to true.
Material.BLENDING, Material.COLORS, Material.SHADING, Material.SIDE
Constructor and Description |
---|
MeshBasicMaterial() |
Modifier and Type | Method and Description |
---|---|
MeshBasicMaterial |
clone() |
Texture |
getAlphaMap() |
Shader |
getAssociatedShader() |
Color |
getColor()
Gets material color
|
Texture.OPERATIONS |
getCombine() |
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() |
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() |
void |
setAlphaMap(Texture alphaMap) |
void |
setColor(Color color)
Sets material color
|
void |
setCombine(Texture.OPERATIONS combine) |
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) |
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, refreshUniforms, 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 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 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 MeshBasicMaterial clone()