# [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 THREE.NoBlending, THREE.NormalBlending, THREE.AdditiveBlending, THREE.SubtractiveBlending, THREE.MultiplyBlending or THREE.CustomBlending
blendEquation -- When blending is THREE.CustomBlending, then you can set the blendEquation. Possible values are THREE.AddEquation, THREE.SubtractEquation or THREE.ReverseSubtractEquation.
blendSrc -- When blending is THREE.CustomBlending, then you can set the blendSrc. Possible values are THREE.ZeroFactor, THREE.OneFactor,THREE.SrcColorFactor, THREE.OneMinusSrcColorFactor, THREE.SrcAlphaFactor, THREE.OneMinusSrcAlphaFactor, THREE.DstAlphaFactor, THREE.OneMinusDstAlphaFactor, THREE.DstColorFactor,THREE.OneMinusDstColorFactor or THREE.SrcAlphaSaturateFactor
blendDst -- When blending is THREE.CustomBlending, then you can set the blendDst. Possible values are THREE.ZeroFactor, THREE.OneFactor,THREE.SrcColorFactor, THREE.OneMinusSrcColorFactor, THREE.SrcAlphaFactor, THREE.OneMinusSrcAlphaFactor, THREE.DstAlphaFactor, THREE.OneMinusDstAlphaFactor, THREE.DstColorFactor,THREE.OneMinusDstColorFactor or THREE.SrcAlphaSaturateFactor

This method sets the correct blending.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]