wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
Data Fields
bgi::LightState Struct Reference

Lighting parameters used by the GL Phong shading passes. More...

#include <bgi_types.h>

Data Fields

float ambient {0.20f}
 
float diffuse {0.70f}
 
float dirX { -0.577f}
 
float dirY { 0.577f}
 
float dirZ {0.577f}
 
float fillStrength {0.30f}
 
float fillX {0.f}
 
float fillY {-1.f}
 
float fillZ {0.f}
 
float shininess {32.f}
 
float specular {0.30f}
 
bool worldSpace {true}
 true = world-space, false = view-space
 

Detailed Description

Lighting parameters used by the GL Phong shading passes.

Primary light direction is normalised by the API setter. All intensities are in [0,1]; shininess is a Phong exponent (e.g. 8..256).

Field Documentation

◆ ambient

float bgi::LightState::ambient {0.20f}

◆ diffuse

float bgi::LightState::diffuse {0.70f}

◆ dirX

float bgi::LightState::dirX { -0.577f}

◆ dirY

float bgi::LightState::dirY { 0.577f}

◆ dirZ

float bgi::LightState::dirZ {0.577f}

◆ fillStrength

float bgi::LightState::fillStrength {0.30f}

◆ fillX

float bgi::LightState::fillX {0.f}

◆ fillY

float bgi::LightState::fillY {-1.f}

◆ fillZ

float bgi::LightState::fillZ {0.f}

◆ shininess

float bgi::LightState::shininess {32.f}

◆ specular

float bgi::LightState::specular {0.30f}

◆ worldSpace

bool bgi::LightState::worldSpace {true}

true = world-space, false = view-space


The documentation for this struct was generated from the following file: