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
8780f83262
commit
25686ed4be
294 changed files with 3894 additions and 2813 deletions
|
|
@ -50,9 +50,9 @@ protected:
|
|||
|
||||
F32 mSunElevation;
|
||||
|
||||
ColorF mLightColor;
|
||||
LinearColorF mLightColor;
|
||||
|
||||
ColorF mLightAmbient;
|
||||
LinearColorF mLightAmbient;
|
||||
|
||||
F32 mBrightness;
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ protected:
|
|||
BaseMatInstance *mCoronaMatInst;
|
||||
MatrixSet *mMatrixSet;
|
||||
F32 mCoronaScale;
|
||||
ColorF mCoronaTint;
|
||||
LinearColorF mCoronaTint;
|
||||
bool mCoronaUseLightColor;
|
||||
|
||||
// These are not user specified.
|
||||
|
|
@ -136,7 +136,7 @@ public:
|
|||
void setElevation( F32 elevation );
|
||||
|
||||
///
|
||||
void setColor( const ColorF &color );
|
||||
void setColor( const LinearColorF &color );
|
||||
|
||||
///
|
||||
void animate( F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue