哈哈

代码
import * as THREE from 'three'
import {
OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
import {
RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js'
import {
GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'
import {
DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js'
import {
GUI } from 'three/examples/jsm/libs/lil-gui.module.min.js'
import {
EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer'
import {
RenderPass } from 'three/examples/jsm/postprocessing/RenderPass'
import {
DotScreenPass } from 'three/examples/jsm/postprocessing/DotScreenPass'
import {
SMAAPass } from 'three/examples/jsm/postprocessing/SMAAPass'
import {
UnrealBloomPass } from 'three/examples/jsm/postprocessing/UnrealBloomPass'
import {
GlitchPass } from 'three/examples/jsm/postprocessing/GlitchPass'
import {
ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass'
const scene = new THREE.Scene()
const camera = new THREE.PerspectiveCamera(100, window.innerWidth / window.innerHeight, 0.1, 100)
camera.position.set(0, 0, 3)
scene.add(camera)
const axesHelper = new THREE.AxesHelper(5)
scene.add(axesHelper)
const cubeTextureLoader = new THREE.CubeTextureLoader()
const envMapTexture = cubeTextureLoader.load([
'../public/textures/environmentMaps/0/px.jpg',
'../public/textures/environmentMaps/0/nx.jpg',
'../public/textures/environmentMaps/0/py.jpg',
'../public/textures/environmentMaps/0/ny.jpg',
'../public/textures/environmentMaps/0/pz.jpg',
'../public/textures/environmentMaps/0/nz.jpg'
])
scene.environment = envMapTexture
scene