How to use the EquirectangularReflectionMapping function from three

Find comprehensive JavaScript three.EquirectangularReflectionMapping code examples handpicked from public code repositorys.

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;
fork icon1
star icon0
watch icon0

+ 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 );
fork icon0
star icon0
watch icon1

+ 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");
fork icon0
star icon0
watch icon0

+ 2 other calls in file

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;

//キューブ環境マッピングのテクスチャの読み込み
fork icon0
star icon0
watch icon0

+ 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;
fork icon0
star icon0
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)