How to use the EquirectangularReflectionMapping function from three
Find comprehensive JavaScript three.EquirectangularReflectionMapping code examples handpicked from public code repositorys.
GitHub: truongvithien/threed
63 64 65 66 67 68 69 70 71 72
var settings = $.extend(defaults, options); new RGBELoader() .setPath(settings.dir) .load(settings.hdri_file, function (texture) { texture.mapping = THREE.EquirectangularReflectionMapping; if (settings.enable_background) { scene.background = texture; } scene.environment = texture;
1
0
0
+ 5 other calls in file
534 535 536 537 538 539 540 541 542 543
parameters.normalMap = getTexture( FBXTree, textureMap, child.ID, connections ); break; case 'ReflectionColor': parameters.envMap = getTexture( FBXTree, textureMap, child.ID, connections ); parameters.envMap.mapping = THREE.EquirectangularReflectionMapping; break; case 'SpecularColor': parameters.specularMap = getTexture( FBXTree, textureMap, child.ID, connections );
0
0
1
+ 88 other calls in file
103 104 105 106 107 108 109 110 111 112
const geometry = new THREE.RoundedBoxGeometry(1, 1, 1, 16, 0.2); const hdrEquirect = new THREE.RGBELoader().load( "src/empty_warehouse_01_2k.hdr", () => { hdrEquirect.mapping = THREE.EquirectangularReflectionMapping; } ); const normalMapTexture = textureLoader.load("src/normal.jpg");
0
0
0
+ 2 other calls in file
GitHub: ryo612/rhinestone
183 184 185 186 187 188 189 190 191 192
scene.add(mesh); // 正距円筒図法反射マッピングのテクスチャの読み込み const textureLoader = new THREE.TextureLoader(); const textureEquirec = textureLoader.load("src/mapping.jpeg"); textureEquirec.mapping = THREE.EquirectangularReflectionMapping; textureEquirec.magFilter = THREE.LinearFilter; textureEquirec.minFilter = THREE.LinearMipMapLinearFilter; //キューブ環境マッピングのテクスチャの読み込み
0
0
0
+ 3 other calls in file
331 332 333 334 335 336 337 338 339 340
/* this.scene.add(new THREE.CameraHelper(this.sun.shadow.camera)); */ const exr_loader = new EXRLoader(); this.exr = (await exr_loader.loadAsync("/rsc/textures/straw_rolls_field_01_1k.exr")); this.exr.mapping = THREE.EquirectangularReflectionMapping; /* this.envMap = await this.texLoader.loadAsync("/rsc/textures/straw_rolls_field_01_1k.exr"); this.envMap.mapping = THREE.EquirectangularReflectionMapping */ this.scene.background = this.exr;
0
0
0
three.Vector3 is the most popular function in three (22341 examples)