mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Implementation of sRGB image support. Overhauls the linearization setup to utilize the sRGB image types, as well as refactors the use of ColorF and ColorI to be properly internally consistent. ColorIs are used only for front-facing/editing/UI settings, and ColorFs, now renamed to LinearColorF to reduce confusion of purpose, are used for color info in the engine itself. This avoids confusing and expensive conversions back and forth between types and avoids botches with linearity. Majority work done by @rextimmy
This commit is contained in:
parent
8943c673fb
commit
0801a3cca8
294 changed files with 3894 additions and 2813 deletions
|
|
@ -94,7 +94,7 @@ class SceneRenderState
|
|||
Point3F mVectorEye;
|
||||
|
||||
/// Global ambient light color.
|
||||
ColorF mAmbientLightColor;
|
||||
LinearColorF mAmbientLightColor;
|
||||
|
||||
/// Forces bin based post effects to be disabled
|
||||
/// during rendering with this scene state.
|
||||
|
|
@ -183,10 +183,10 @@ class SceneRenderState
|
|||
/// light.
|
||||
///
|
||||
/// @return The ambient light color for rendering.
|
||||
ColorF getAmbientLightColor() const { return mAmbientLightColor; }
|
||||
LinearColorF getAmbientLightColor() const { return mAmbientLightColor; }
|
||||
|
||||
/// Set the global ambient light color to render with.
|
||||
void setAmbientLightColor( const ColorF& color ) { mAmbientLightColor = color; }
|
||||
void setAmbientLightColor( const LinearColorF& color ) { mAmbientLightColor = color; }
|
||||
|
||||
/// If true then Advanced Lighting bin draws are disabled during rendering with
|
||||
/// this scene state.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue