mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
101.59k stars 35.29k forks source link

CubeTexture orientation #16328

Closed fabienrohrer closed 6 months ago

fabienrohrer commented 5 years ago

In my app, I would like to rotate the CubeTexture that defines the scene background and the environment map reflections by 180° along the vertical y-axis. My rotation is defined by the VRML and X3D specifications about the background fields.

I tried to modify several parameters like the mapping, flipY and rotation Texture fields. However I didn't found any good way to do so.

VanderSP commented 7 months ago

hi @jrj2211 no need to compile , just paste code in any part of js, it will override it

joezappie commented 7 months ago

Hmm, if I just paste it in I get the "Fragment shader is not compiled.". I am unfortunately stuck on an older version of Threejs so I'm guessing that's the reason.

VanderSP commented 7 months ago

@jrj2211 Maybe you get luck first copying the fragment from your actual version, then copying the relevant parts I added!

joezappie commented 7 months ago

Thanks for the suggestion! I'll give that a shot

Mugen87 commented 6 months ago

@nickyvanurk I suggest you ask your question at the forum.

GitHub is no the right place for help requests. When you do so, demonstrate the issue with a live example. Without seeing your code, it is not possible to provide feedback.

Edit: Answer at the forum: https://discourse.threejs.org/t/cubetexture-docs-axis-confusing-wrong/61513/4