How to use the VSMShadowMap function from three

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

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

+ 5 other calls in file

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 () {
fork icon0
star icon0
watch icon0

+ 4 other calls in file

Other functions in three

Sorted by popularity

function icon

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