import RenderTexture from '@mobilizing/library/js/Mobilizing/renderer/3D/three/texture/RenderTexture.js'
RenderTexture
Constructor Summary
Public Constructor | ||
public | constructor(params: Object) RenderTexture are 3D camera rendered bitmap pictures loaded in the graphic card memory so they can be mapped on a geometry surface. |
Member Summary
Method Summary
Public Methods | ||
public | getHeight(): * | |
public | getNativeObject(): * | |
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:
Name | Type | Attribute | Description |
params | Object | Parameters object, given by the constructor. | |
params.width | Number | the width of this texture | |
params.height | Number | the height of this texture | |
params.format | String | the texture format to use (see https://threejs.org/docs/#api/constants/Textures > Formats) |