Examples / environment

environment.json

targets v0.39.0 2 entities 3 schemas

One image-based light. hdri is a rig.media.asset_ref (kind image, lat-long Radiance file). Absent intensity is 1. Decode and spherical-harmonic coefficients stay in the host.

Speaks

rig.media.asset_ref · rig.meta.named · rig.render.environment

Document

Validates under npm run check — raw file · open in RigPlayer — drop it in, press play, remix it, share the link.

{
  "rig": "0.39.0",
  "document": {
    "title": "Environment",
    "defaultUnit": "m"
  },
  "entities": [
    {
      "id": "sky",
      "components": {
        "rig.meta.named": {
          "name": "sky",
          "stableId": "sky"
        },
        "rig.render.environment": {
          "hdri": "sky-hdr"
        }
      }
    },
    {
      "id": "sky-hdr",
      "components": {
        "rig.meta.named": {
          "name": "sky-hdr",
          "stableId": "sky-hdr"
        },
        "rig.media.asset_ref": {
          "kind": "image",
          "path": "env/sky.hdr"
        }
      }
    }
  ]
}