Merge branch 'bx-906-front' of https://git.svs-tech.pro/ksenia_mikhailova/demo-int-table into bx-906-front
This commit is contained in:
commit
3a3f2cdeb3
File diff suppressed because it is too large
Load Diff
|
@ -29,13 +29,8 @@ const props = defineProps(['source', 'loaded', 'loaded_pan'])
|
|||
|
||||
function shadows_and_pos(scene: any) {
|
||||
scene.children.forEach((el: any) => {
|
||||
el.receiveShadow = true
|
||||
el.castShadow = true
|
||||
if (el.isPointLight) {
|
||||
el.shadow.bias = -0.01
|
||||
const k = 6
|
||||
el.shadow.mapSize = new Vector2(512 * k, 512 * k)
|
||||
}
|
||||
// el.receiveShadow = true
|
||||
// el.castShadow = true
|
||||
shadows_and_pos(el)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue