JSFiddle - React, Tailwind, and code Playground
JavaScript
import * as three from "https://cdn.jsdelivr.net/npm/three@0.176.0/build/three.module.js";
const target1 = new three.WebGLRenderTarget(2, 2, {
type: three.FloatType,
depthBuffer: true,
stencilBuffer: false,
});
const target2 = new three.WebGLArrayRenderTarget(2, 2, 2, {
type: three.FloatType,
depthBuffer: true,
stencilBuffer: false
});
console.log("three.FloatType:", three.FloatType);
console.log("three.UnsignedByteType:", three.UnsignedByteType);
console.log('target1:', target1.texture.type);
console.log('target2:', target2.texture.type);