Skip to main content
POST
/
fog
/
settings
update volumetric fog settings
curl --request POST \
  --url http://localhost:3917/fog/settings \
  --header 'Content-Type: application/json' \
  --data '
{
  "absorption": 123,
  "color": [
    123
  ],
  "density": 123,
  "enabled": true,
  "height_falloff": 123,
  "light_contribution": 123,
  "max_distance": 123,
  "scattering": 123
}
'
{
  "absorption": 0.1,
  "color": [
    0.5,
    0.6,
    0.7
  ],
  "density": 0.02,
  "enabled": true,
  "height_falloff": 0.1,
  "light_contribution": 1,
  "max_distance": 100,
  "ok": true,
  "scattering": 0.8
}

Body

application/json
absorption
number<float> | null
color
number<float>[] | null
density
number<float> | null
enabled
boolean | null
height_falloff
number<float> | null
light_contribution
number<float> | null
max_distance
number<float> | null
scattering
number<float> | null

Response

200 - application/json

Fog settings updated (resource created if absent); only provided fields change. Echoes the full updated settings, same shape as GET.