【提问】有没有大佬帮我看看为什么这个镜子一加上就不能运行了-前端板块造梦空间论坛-技术交流-造梦空间论坛

提问有没有大佬帮我看看为什么这个镜子一加上就不能运行了

// 创建镜子

  var mirrorGeometry = new THREE.PlaneGeometry(10, 10);

  var mirror = new THREE.Reflector(mirrorGeometry, {

    clipBias: 0.003,

    textureWidth: window.innerWidth * window.devicePixelRatio,

    textureHeight: window.innerHeight * window.devicePixelRatio,

    color: 0x888888,

    }

  );

  mirror.position.set(0, 0, -5);

 // mirror.rotateX(-Math.PI / 2);

  scene.add(mirror);

请登录后发表评论

    没有回复内容

© 造梦空间论坛