35 glm::vec3
sunLight = glm::vec3(1.0f, 1.0f, 1.0f);
This struct is used to hold all environment settings. eg. shading details or lighting setup.
bool screenDither
Enables screen dithering. (PS1 style dithering).
float ambientLightStrength
Ambient light strength.
bool textureQuantization
Enables texture quantization. (PS1 style texture quantization).
glm::vec3 sunDirection
Sun direction.
bool screenQuantization
Enables whole screen color quantization. (PS1 style color compresion artifacts).
bool gourardShading
Enables Gouraud shading.
bool ntfsArtifacts
Enables CRT TVs artifacts.
glm::vec3 clearColor
Background color (Esentially sky color if not implemented any skybox).
bool affineWarping
Enables affine texxture warping. (PS1 style texture warping in extreme camera angles).
bool passiveVertexJitter
Enables passive vertex jittering. (PS1 style jitter when camera is not moving).
glm::vec3 sunLight
Sun light color.
bool vertexSnapping
Enables vertex snapping. (PS1 style jitter when camera is moving).
glm::vec3 ambientLight
Ambient light color.