threejs V155

This commit is contained in:
Adrien MALINGREY 2023-07-30 15:01:43 +02:00
parent 3bb43edcee
commit 75a173d0af
2 changed files with 2 additions and 5 deletions

View File

@ -12,8 +12,8 @@
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.154/build/three.module.js?module",
"three/addons/": "https://unpkg.com/three@0.154/examples/jsm/"
"three": "https://unpkg.com/three@0.155/build/three.module.js?module",
"three/addons/": "https://unpkg.com/three@0.155/examples/jsm/"
}
}
</script>

View File

@ -62,11 +62,8 @@ const renderer = new THREE.WebGLRenderer({
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.toneMapping = THREE.ACESFilmicToneMapping;
//renderer.toneMappingExposure = 0.5;
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.useLegacyLights = false;
//renderer.outputColorSpace = THREE.sRGBEncoding;
container.appendChild(renderer.domElement);