ParticleCanvasMaterial class
class ParticleCanvasMaterial extends Material implements IParticleMaterial { Color color; ParticleCanvasMaterialProgram program; ParticleCanvasMaterial( { // ParticleCanvasMaterial num color: 0xffffff, this.program, // 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 ) { if (this.program == null) this.program = (context) {}; } }
Extends
Material > ParticleCanvasMaterial
Implements
Constructors
new ParticleCanvasMaterial({num color: 0xffffff, ParticleCanvasMaterialProgram program, 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
ParticleCanvasMaterial( { // ParticleCanvasMaterial num color: 0xffffff, this.program, // 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 ) { if (this.program == null) this.program = (context) {}; }
Properties
ParticleCanvasMaterialProgram program #
ParticleCanvasMaterialProgram program