How to use the WebGLMultiRenderTarget function from three

Find comprehensive JavaScript three.WebGLMultiRenderTarget code examples handpicked from public code repositorys.

177
178
179
180
181
182
183
184
185
186

  return renderTarget
}

// export function createMultiRenderTarget (count, width, height, format, type, minFilter, magFilter) {
//   var renderTarget = new THREE.WebGLMultiRenderTarget(width || 1, height || 1, {
//     format: format || THREE.RGBFormat,
//     type: type || THREE.UnsignedByteType,
//     minFilter: minFilter || THREE.LinearFilter,
//     magFilter: magFilter || THREE.LinearFilter,
fork icon18
star icon1
watch icon3

+ 3 other calls in file

179
180
181
182
183
184
185
186
187
188

  return renderTarget
}

export function createMultiRenderTarget (count, width, height, format, type, minFilter, magFilter) {
  var renderTarget = new THREE.WebGLMultiRenderTarget(width || 1, height || 1, {
    format: format || THREE.RGBFormat,
    type: type || THREE.UnsignedByteType,
    minFilter: minFilter || THREE.LinearFilter,
    magFilter: magFilter || THREE.LinearFilter,
fork icon18
star icon1
watch icon3

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)