public class LineBasicMaterial extends Material implements HasFog, HasColor, HasVertexColors
Material.BLENDING, Material.COLORS, Material.SHADING, Material.SIDE
Constructor and Description |
---|
LineBasicMaterial() |
Modifier and Type | Method and Description |
---|---|
LineBasicMaterial |
clone() |
Shader |
getAssociatedShader() |
Color |
getColor()
Line color in hexadecimal.
|
double |
getLinewidth()
Line thickness.
|
boolean |
isFog()
Define whether the material color is affected by global fog settings.
|
Material.COLORS |
isVertexColors()
Get how the vertices gets colored.
|
void |
refreshUniforms(Camera camera,
boolean isGammaInput) |
void |
setColor(Color color)
Sets material color
|
void |
setFog(boolean fog) |
void |
setLinewidth(double linewidth)
Controls line thickness.
|
void |
setVertexColors(Material.COLORS vertexColors)
Define how the vertices gets colored.
|
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 double getLinewidth()
public void setLinewidth(double linewidth)
Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
linewidth
- public boolean isFog()
HasFog
public Color getColor()
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 LineBasicMaterial clone()
public void refreshUniforms(Camera camera, boolean isGammaInput)
refreshUniforms
in class Material