FramebufferTexture

THREE.FramebufferTexture
class FramebufferTexture(var width: UndefOr[Double], var height: UndefOr[Double]) extends Texture

This class can only be used in combination with copyFramebufferToTexture() methods of renderers. It extracts the contents of the current bound framebuffer and provides it as a texture for further usage.

Attributes

Example
 val pixelRatio  = scala.scalajs.dom.window.devicePixelRatio
 val textureSize = 128 * pixelRatio
 val frameTexture = new FramebufferTexture(textureSize, textureSize)
 // calculate start position for copying part of the frame data
 val vector = new Vector2()
 vector.x = (scala.scalajs.dom.window.innerWidth * pixelRatio / 2) - (textureSize / 2)
 vector.y = (scala.scalajs.dom.window.innerHeight * pixelRatio / 2) - (textureSize / 2)
 renderer.render(scene, camera)
 // copy part of the rendered frame into the framebuffer texture
 renderer.copyFramebufferToTexture(frameTexture, vector)
Graph
Supertypes
class Texture
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def copy(source: Texture): this.type

Attributes

Inherited from:
Texture
def dispose(): Unit

Attributes

Inherited from:
Texture
def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def jsClone(): Texture

Attributes

Inherited from:
Texture
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toJSON(meta: Object): Object

Attributes

Inherited from:
Texture
def toLocaleString(): String

Attributes

Inherited from:
Object

Attributes

Inherited from:
Texture
def updateMatrix(): Unit

Attributes

Inherited from:
Texture
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var height: UndefOr[Double]
val isFramebufferTexture: Boolean

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

var width: UndefOr[Double]

Inherited fields

var `type`: UndefOr[Int]

Attributes

Inherited from:
Texture
var anisotropy: UndefOr[Int]

Attributes

Inherited from:
Texture

Attributes

Inherited from:
Texture
var colorSpace: UndefOr[String]

Attributes

Inherited from:
Texture
var flipY: Boolean

Attributes

Inherited from:
Texture
var format: UndefOr[Int]

Attributes

Inherited from:
Texture
var generateMipmaps: Boolean

Attributes

Inherited from:
Texture
val id: Int

Attributes

Inherited from:
Texture
var image: UndefOr[Any]

Attributes

Inherited from:
Texture
val isTexture: Boolean

Attributes

Inherited from:
Texture
var magFilter: UndefOr[Int]

Attributes

Inherited from:
Texture
var mapping: UndefOr[Int]

Attributes

Inherited from:
Texture

Attributes

Inherited from:
Texture
var matrixAutoUpdate: Boolean

Attributes

Inherited from:
Texture
var minFilter: UndefOr[Int]

Attributes

Inherited from:
Texture
val name: String

Attributes

Inherited from:
Texture
var needsUpdate: Boolean

Attributes

Inherited from:
Texture

Attributes

Inherited from:
Texture
var premultiplyAlpha: Boolean

Attributes

Inherited from:
Texture

Attributes

Inherited from:
Texture
var rotation: Double

Attributes

Inherited from:
Texture
val uuid: String

Attributes

Inherited from:
Texture
var version: Int

Attributes

Inherited from:
Texture
var wrapS: UndefOr[Int]

Attributes

Inherited from:
Texture
var wrapT: UndefOr[Int]

Attributes

Inherited from:
Texture