How to use the VSMShadowMap function from three
Find comprehensive JavaScript three.VSMShadowMap code examples handpicked from public code repositorys.
GitHub: truongvithien/threed
638 639 640 641 642 643 644 645 646 647
// } }); $(web3d.el.renderer.removeClass("loading")); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.VSMShadowMap; // console.log(obj_asset3); web3d.genMetadata(settings);
1
0
0
+ 5 other calls in file
GitHub: webtop1/react-webgl
56 57 58 59 60 61 62 63 64 65
scene.add(floor); // 初始化渲染器 var renderer = new THREE.WebGLRenderer({ alpha: true }); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.BasicShadowMap; // renderer.shadowMap.type = THREE.VSMShadowMap; // 设置渲染尺寸大小 renderer.setSize(window.innerWidth, window.innerHeight); // 监听屏幕大小改变的变化,设置渲染的尺寸 window.addEventListener("resize", function () {
0
0
0
+ 4 other calls in file
three.Vector3 is the most popular function in three (22341 examples)