blob: 5ec81453518b053cd9f93da7793402ba2a4d7d19 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 | #pragma once
#include <gfx/llr/light.h>
#include "scene/types.h"
typedef struct Texture Texture;
/// An environment light.
typedef struct EnvironmentLight {
  const Texture* environment_map;
  const Texture* irradiance_map;              // Renderer implementation.
  const Texture* prefiltered_environment_map; // Renderer implementation.
  int max_reflection_lod; // Mandatory when prefiltered_environment_map is
                          // given.
} EnvironmentLight;
/// A scene light.
typedef struct Light {
  LightType type;
  union {
    EnvironmentLight environment;
  };
  node_idx parent; // Parent SceneNode.
} Light;
 |