[name]

Methods

[method:null enable]([param:integer id], [param:boolean boolean])

TODO

[method:null disable]([param:integer id], [param:boolean boolean])

TODO

[method:null setDepthTest]([param:boolean depthTest])

depthTest -- The boolean to decide if depth of a fragment needs to be tested against the depth buffer .

This sets, based on depthTest, whether or not the depth data needs to be tested against the depth buffer.

[method:null setDepthWrite]([param:boolean depthWrite])

depthWrite -- The boolean to decide if depth of a fragment needs to be kept.

This sets, based on depthWrite, whether or not the depth data needs to be written in the depth buffer.

[method:null setBlending]([param:number blending], [param:number blendEquation], [param:number blendSrc], [param:number blendDst])

blending -- A number indicating the blending mode. Possible value are v3d.NoBlending, v3d.NormalBlending, v3d.AdditiveBlending, v3d.SubtractiveBlending, v3d.MultiplyBlending or v3d.CustomBlending
blendEquation -- When blending is v3d.CustomBlending, then you can set the blendEquation. Possible values are v3d.AddEquation, v3d.SubtractEquation or v3d.ReverseSubtractEquation.
blendSrc -- When blending is v3d.CustomBlending, then you can set the blendSrc. Possible values are v3d.ZeroFactor, v3d.OneFactor,v3d.SrcColorFactor, v3d.OneMinusSrcColorFactor, v3d.SrcAlphaFactor, v3d.OneMinusSrcAlphaFactor, v3d.DstAlphaFactor, v3d.OneMinusDstAlphaFactor, v3d.DstColorFactor,v3d.OneMinusDstColorFactor or v3d.SrcAlphaSaturateFactor
blendDst -- When blending is v3d.CustomBlending, then you can set the blendDst. Possible values are v3d.ZeroFactor, v3d.OneFactor,v3d.SrcColorFactor, v3d.OneMinusSrcColorFactor, v3d.SrcAlphaFactor, v3d.OneMinusSrcAlphaFactor, v3d.DstAlphaFactor, v3d.OneMinusDstAlphaFactor, v3d.DstColorFactor,v3d.OneMinusDstColorFactor or v3d.SrcAlphaSaturateFactor

This method sets the correct blending.

[sourceHint]