mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
wip
This commit is contained in:
parent
2b441f7cd7
commit
c8a3ed739d
@ -30,8 +30,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
initGem() {
|
||||
this.initMesh();
|
||||
|
||||
const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter });
|
||||
this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT);
|
||||
bindProp(this, 'position', this.cubeCamera.position);
|
||||
|
@ -25,8 +25,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
initMirrorMesh() {
|
||||
this.initMesh();
|
||||
|
||||
const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter });
|
||||
this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT);
|
||||
this.$parent.add(this.cubeCamera);
|
||||
|
@ -28,8 +28,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
initMirrorMesh() {
|
||||
this.initMesh();
|
||||
|
||||
const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { mapping: CubeRefractionMapping, format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter });
|
||||
this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT);
|
||||
bindProp(this, 'position', this.cubeCamera.position);
|
||||
|
Loading…
Reference in New Issue
Block a user