if (light.data.dim) {
            hasDim = true
            lightsDevice.data.dim = light.data.dim
          }