LineBasicMaterial class
@author mr.doob / http://mrdoob.com/ @author alteredq / http://alteredqualia.com/
Ported to Dart from JS by: @author rob silverton / http://www.unwrong.com/
parameters = { color: <hex>, opacity: <float>,
blending: THREE.NormalBlending, depthTest: <bool>,
linewidth: <float>, linecap: "round", linejoin: "round",
vertexColors: <bool>
fog: <bool> }
class LineBasicMaterial extends Material {
Color color;
num linewidth;
String linecap;
String linejoin;
bool fog;
// Before changing this please checkout issue #79
dynamic vertexColors;
LineBasicMaterial({ // LineBasicMaterial
num color: 0xffffff,
this.linewidth: 1,
this.linecap: 'round',
this.linejoin: 'round',
this.vertexColors: false,
this.fog: true,
// Material
name: '',
side: FrontSide,
opacity: 1,
transparent: false,
blending: NormalBlending,
blendSrc: SrcAlphaFactor,
blendDst: OneMinusSrcAlphaFactor,
blendEquation: AddEquation,
depthTest: true,
depthWrite: true,
polygonOffset: false,
polygonOffsetFactor: 0,
polygonOffsetUnits: 0,
alphaTest: 0,
overdraw: false,
visible: true })
:
this.color = new Color(color),
super( name: name,
side: side,
opacity: opacity,
transparent: transparent,
blending: blending,
blendSrc: blendSrc,
blendDst: blendDst,
blendEquation: blendEquation,
depthTest: depthTest,
depthWrite: depthWrite,
polygonOffset: polygonOffset,
polygonOffsetFactor: polygonOffsetFactor,
polygonOffsetUnits: polygonOffsetUnits,
alphaTest: alphaTest,
overdraw: overdraw,
visible: visible );
}
Extends
Material > LineBasicMaterial
Constructors
new LineBasicMaterial({num color: 0xffffff, num linewidth: 1, String linecap: 'round', String linejoin: 'round', vertexColors: false, bool fog: true, name: '', side: FrontSide, opacity: 1, transparent: false, blending: NormalBlending, blendSrc: SrcAlphaFactor, blendDst: OneMinusSrcAlphaFactor, blendEquation: AddEquation, depthTest: true, depthWrite: true, polygonOffset: false, polygonOffsetFactor: 0, polygonOffsetUnits: 0, alphaTest: 0, overdraw: false, visible: true}) #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.
docs inherited from Object
LineBasicMaterial({ // LineBasicMaterial
num color: 0xffffff,
this.linewidth: 1,
this.linecap: 'round',
this.linejoin: 'round',
this.vertexColors: false,
this.fog: true,
// Material
name: '',
side: FrontSide,
opacity: 1,
transparent: false,
blending: NormalBlending,
blendSrc: SrcAlphaFactor,
blendDst: OneMinusSrcAlphaFactor,
blendEquation: AddEquation,
depthTest: true,
depthWrite: true,
polygonOffset: false,
polygonOffsetFactor: 0,
polygonOffsetUnits: 0,
alphaTest: 0,
overdraw: false,
visible: true })
:
this.color = new Color(color),
super( name: name,
side: side,
opacity: opacity,
transparent: transparent,
blending: blending,
blendSrc: blendSrc,
blendDst: blendDst,
blendEquation: blendEquation,
depthTest: depthTest,
depthWrite: depthWrite,
polygonOffset: polygonOffset,
polygonOffsetFactor: polygonOffsetFactor,
polygonOffsetUnits: polygonOffsetUnits,
alphaTest: alphaTest,
overdraw: overdraw,
visible: visible );
Properties
var vertexColors #
dynamic vertexColors