fog size
This commit is contained in:
parent
5bb6a7db66
commit
c88c51fdd1
|
@ -1,3 +1,3 @@
|
||||||
VITE_SERVER_URL='https://demo.kustarshina.ru'
|
VITE_SERVER_URL='https://demo.kustarshina.ru'
|
||||||
VITE_IMAGE_URL='https://demo.kustarshina.ru'
|
VITE_IMAGE_URL='https://demo.kustarshina.ru'
|
||||||
VITE_SERVER_URL='http://192.168.103.159:8000'
|
VITE_SERVER_URL='https://demo.kustarshina.ru'
|
|
@ -52,7 +52,7 @@ const loadModels = async () => {
|
||||||
const res = await fetch(`${SERVER_URL}/api/obj/scene/${props.source}`)
|
const res = await fetch(`${SERVER_URL}/api/obj/scene/${props.source}`)
|
||||||
const raw_data = await res.json() as scene3D
|
const raw_data = await res.json() as scene3D
|
||||||
|
|
||||||
envVars.focus = raw_data.min_distance * 1
|
envVars.focus = raw_data.max_distance * 0.5
|
||||||
if (raw_data.env) {
|
if (raw_data.env) {
|
||||||
Object.assign(envVars, raw_data.env)
|
Object.assign(envVars, raw_data.env)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue