Three.Legacy.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
  2. import { DataArrayTexture } from './textures/DataArrayTexture.js';
  3. import { Data3DTexture } from './textures/Data3DTexture.js';
  4. // r134, d65e0af06644fe5a84a6fc0e372f4318f95a04c0
  5. export function ImmediateRenderObject() {
  6. console.error( 'THREE.ImmediateRenderObject has been removed.' );
  7. }
  8. // r138, 48b05d3500acc084df50be9b4c90781ad9b8cb17
  9. export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
  10. constructor( width, height, options ) {
  11. console.error( 'THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.' );
  12. super( width, height, options );
  13. this.samples = 4;
  14. }
  15. }
  16. // r138, f9cd9cab03b7b64244e304900a3a2eeaa3a588ce
  17. export class DataTexture2DArray extends DataArrayTexture {
  18. constructor( data, width, height, depth ) {
  19. console.warn( 'THREE.DataTexture2DArray has been renamed to DataArrayTexture.' );
  20. super( data, width, height, depth );
  21. }
  22. }
  23. // r138, f9cd9cab03b7b64244e304900a3a2eeaa3a588ce
  24. export class DataTexture3D extends Data3DTexture {
  25. constructor( data, width, height, depth ) {
  26. console.warn( 'THREE.DataTexture3D has been renamed to Data3DTexture.' );
  27. super( data, width, height, depth );
  28. }
  29. }
粤ICP备19079148号