three.jsのCubeTexture 画像の指定順

覚え書き。

X軸プラス方向を東と見なし、

  1. 西

の順に指定する。

1
2
3
4
5
6
7
8
9
let skyboxTexture = new THREE.CubeTexture([
"DaylightBox_Front",
"DaylightBox_Back",
"DaylightBox_Top",
"DaylightBox_Bottom",
"DaylightBox_Left",
"DaylightBox_Right",
].map(name => AssetManager.get("image", name).domElement));
skyboxTexture.needsUpdate = true;
1
2
3
4
5
6
7
8
9
let skyboxTexture = new THREE.CubeTexture([
"clouds1_east",
"clouds1_west",
"clouds1_up",
"clouds1_down",
"clouds1_north",
"clouds1_south",
].map(name => AssetManager.get("image", name).domElement));
skyboxTexture.needsUpdate = true;