How to use the HemisphereLightHelper function from three
Find comprehensive JavaScript three.HemisphereLightHelper code examples handpicked from public code repositorys.
290 291 292 293 294 295 296 297 298 299
} else if (object.isSpotLight) { helper = new THREE.SpotLightHelper(object); } else if (object.isHemisphereLight) { helper = new THREE.HemisphereLightHelper(object, 1); } else if (object.isSkinnedMesh) { helper = new THREE.SkeletonHelper(object.skeleton.bones[0]); }
1
3
0
GitHub: truongvithien/threed
365 366 367 368 369 370 371 372 373
light_hemi.groundColor.setHSL(0.095, 1, 0.75); light_hemi.position.set(0, 50, 0); scene.add(light_hemi); if (web3d.helper) { const light_hemi_helper = new THREE.HemisphereLightHelper(light_hemi, 10); scene.add(light_hemi_helper); } }
1
0
0
+ 5 other calls in file
three.Vector3 is the most popular function in three (22341 examples)