Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LightingConfig Struct Reference

Public Member Functions

LightingConfigupdateFrom (const LightingConfig &config)

Public Attributes

std::optional< ShadingMode > shadingMode = std::nullopt
std::optional< glm::vec3 > position = std::nullopt
std::optional< CoordinateSpacereferenceSpace = std::nullopt
std::optional< glm::vec3 > ambient = std::nullopt
std::optional< glm::vec3 > diffuse = std::nullopt
std::optional< glm::vec3 > specular = std::nullopt
std::optional< float > specularExponent = std::nullopt

Static Public Attributes

static constexpr ShadingMode defaultShadingMode {ShadingMode::BlinnPhong}
static constexpr glm::vec3 defaultPosition {10.0f, 10.0f, 10.0f}
static constexpr CoordinateSpace defaultReferenceSpace {CoordinateSpace::View}
static constexpr glm::vec3 defaultAmbient {0.15f}
static constexpr glm::vec3 defaultDiffuse {0.6f}
static constexpr glm::vec3 defaultSpecular {0.4f}
static constexpr float defaultSpecularExponent {60.0f}

Friends

bool operator== (const LightingConfig &, const LightingConfig &)=default

The documentation for this struct was generated from the following file:
  • lightingconfig.h