Repository

RenderTexture

Constructor Summary

Public Constructor
public

RenderTexture are 3D camera rendered bitmap pictures loaded in the graphic card memory so they can be mapped on a geometry surface.

Member Summary

Public Members
public

format: *

public

height: *

public
public
public

width: *

Method Summary

Public Methods
public

getHeight(): *

public
public

getWidth(): *

Public Constructors

public constructor(params: Object) source

RenderTexture are 3D camera rendered bitmap pictures loaded in the graphic card memory so they can be mapped on a geometry surface. Usually, texture are mapped through a Material. Keep in mind that WebGL, as an implementation of OpenGL, shares the same kind of limitations : textures sources should be power of 2 (even if here, Three.js is doing the job of resizing for you if they're not).

Params:

NameTypeAttributeDescription
paramsObject

Parameters object, given by the constructor.

params.widthNumber

the width of this texture

params.heightNumber

the height of this texture

params.formatString

the texture format to use (see https://threejs.org/docs/#api/constants/Textures > Formats)

Public Members

public format: * source

public height: * source

public renderTarget: * source

public texture: * source

public width: * source

Public Methods

public getHeight(): * source

Return:

*

public getNativeObject(): * source

Return:

*

the Three.js native object used in this class

public getWidth(): * source

Return:

*