Embarking on my coding journey with JavaScript and exploring Three.js
I created an experiment using shaders and an environment map (http://jsfiddle.net/gnazoa/3hxrky6k/1/)
Through a tutorial on the Three.js website, I discovered how to achieve reflections between geometries using a cubeCamera (http://jsfiddle.net/gnazoa/z3frkb6m/1/)
Now I'm faced with the challenge of creating reflections between two geometries and the textureCube simultaneously.
I've tried defining uniforms like this:
envMap: {
type: "t",
value: cubeCamera.renderTarget
},
or like this:
envMap: {
type: "t",
value: textureCube
},
Unfortunately, combining both methods like this doesn't work:
envMap: {
type: "t",
value: textureCube, cubeCamera.renderTarget
},
Any suggestions or recommendations? Thank you