mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Went through all examples, all should work. JSON files exported from Blender / converted from OBJ files still use underscored property names internally. I don't know, should these also be changed?
22 lines
725 B
JavaScript
22 lines
725 B
JavaScript
/**
|
|
* @author szimek / https://github.com/szimek/
|
|
*/
|
|
|
|
THREE.RenderTarget = function ( width, height, options ) {
|
|
|
|
this.width = width;
|
|
this.height = height;
|
|
|
|
options = options || {};
|
|
|
|
this.wrapS = options.wrapS !== undefined ? options.wrapS : THREE.ClampToEdgeWrapping;
|
|
this.wrapT = options.wrapT !== undefined ? options.wrapT : THREE.ClampToEdgeWrapping;
|
|
|
|
this.magFilter = options.magFilter !== undefined ? options.magFilter : THREE.LinearFilter;
|
|
this.minFilter = options.minFilter !== undefined ? options.minFilter : THREE.LinearMipMapLinearFilter;
|
|
|
|
this.format = options.format !== undefined ? options.format : THREE.RGBFormat;
|
|
this.type = options.type !== undefined ? options.type : THREE.UnsignedByteType;
|
|
|
|
};
|