dev #10

Merged
ksenia_mikhailova merged 46 commits from dev into main 2024-07-24 12:58:58 +03:00
3 changed files with 8171 additions and 378 deletions
Showing only changes of commit 3a3f2cdeb3 - Show all commits

File diff suppressed because it is too large Load Diff

View File

@ -29,13 +29,8 @@ const props = defineProps(['source', 'loaded', 'loaded_pan'])
function shadows_and_pos(scene: any) { function shadows_and_pos(scene: any) {
scene.children.forEach((el: any) => { scene.children.forEach((el: any) => {
el.receiveShadow = true // el.receiveShadow = true
el.castShadow = true // el.castShadow = true
if (el.isPointLight) {
el.shadow.bias = -0.01
const k = 6
el.shadow.mapSize = new Vector2(512 * k, 512 * k)
}
shadows_and_pos(el) shadows_and_pos(el)
}) })
} }