FramebufferTexture class
This class can only be used in combination with WebGLRenderer.copyFramebufferToTexture. final pixelRatio = devicePixelRatio; final textureSize = 128 * pixelRatio;
// instantiate a framebuffer texture
final frameTexture = FramebufferTexture( textureSize, textureSize );
// calculate start position for copying part of the frame data
final vector = Vector2();
vector.x = (innerWidth * pixelRatio / 2 ) - ( textureSize / 2 );
vector.y = (innerHeight * pixelRatio / 2 ) - ( textureSize / 2 );
// render the scene
renderer.clear();
renderer.render( scene, camera );
// copy part of the rendered frame into the framebuffer texture
renderer.copyFramebufferToTexture( vector, frameTexture );
Constructors
- FramebufferTexture(int width, int height, [int format = RGBAFormat])
Properties
- anisotropy ↔ int
-
getter/setter pairinherited
- center ↔ Vector2
-
getter/setter pairinherited
- colorSpace ↔ String
-
getter/setter pairinherited
- encoding ↔ int
-
getter/setter pairinherited
- flipY ↔ bool
-
getter/setter pairinherited
- format ↔ int
-
getter/setter pairinherited
- generateMipmaps ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
getter/setter pairinherited
- image ↔ dynamic
-
getter/setter pairinherited
- internalFormat ↔ int?
-
getter/setter pairinherited
- isCompressedTexture ↔ bool
-
getter/setter pairinherited
- isDepthTexture ↔ bool
-
getter/setter pairinherited
- isOpenGLTexture ↔ bool
-
getter/setter pairinherited
- isRenderTargetTexture ↔ bool
-
getter/setter pairinherited
- isTexture ↔ bool
-
getter/setter pairinherited
- isVideoTexture ↔ bool
-
getter/setter pairinherited
- isWebGLRenderTarget ↔ bool
-
getter/setter pairinherited
- magFilter ↔ int
-
getter/setter pairinherited
- mapping ↔ int?
-
getter/setter pairinherited
- matrix ↔ Matrix3
-
getter/setter pairinherited
- matrixAutoUpdate ↔ bool
-
getter/setter pairinherited
- minFilter ↔ int
-
getter/setter pairinherited
- mipmaps ↔ List
-
getter/setter pairinherited
- name ↔ String
-
getter/setter pairinherited
- needsPMREMUpdate ↔ bool
-
getter/setter pairinherited
- needsUpdate ← bool
-
no getterinherited
- offset ↔ Vector2
-
getter/setter pairinherited
- onUpdate ↔ Function?
-
getter/setter pairinherited
- premultiplyAlpha ↔ bool
-
getter/setter pairinherited
- repeat ↔ Vector2
-
getter/setter pairinherited
- rotation ↔ double
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source ↔ Source
-
getter/setter pairinherited
- type ↔ int
-
getter/setter pairinherited
- unpackAlignment ↔ int
-
getter/setter pairinherited
- userData ↔ Map
-
getter/setter pairinherited
- uuid ↔ String
-
getter/setter pairinherited
- version ↔ int
-
getter/setter pairinherited
- wrapR ↔ int
-
getter/setter pairinherited
- wrapS ↔ int
-
getter/setter pairinherited
- wrapT ↔ int
-
getter/setter pairinherited
Methods
-
addEventListener(
String type, Function listener) → void -
type
- The type of event to listen to.inherited -
clearListeners(
) → void -
Remove all Listeners.
inherited
-
clone(
) → Texture -
inherited
-
copy(
Texture source) → Texture -
inherited
-
dispatchEvent(
Event event) → void -
event
- The event that gets fired.inherited -
dispose(
) → void -
inherited
-
hasEventListener(
String type, Function listener) → bool -
type
- The type of event to listen to.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, Function listener) → void -
type - The type of the listener that gets removed.
inherited
-
toJson(
dynamic meta) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transformUv(
Vector2 uv) → Vector2 -
inherited
-
updateMatrix(
) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited