mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +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
|
|
@ -47,6 +47,10 @@ protected:
|
|||
/// Sets the cubemap file path.
|
||||
void _setPath( const String &path ) { mPath = path; }
|
||||
|
||||
/// Get Z up face index of the cubemap. DDS files will be stored Y up
|
||||
U32 _zUpFaceIndex(const U32 index);
|
||||
|
||||
U32 mMipMapLevels;
|
||||
public:
|
||||
|
||||
/// Create a static cubemap from a list of 6 face textures.
|
||||
|
|
@ -74,6 +78,9 @@ public:
|
|||
// GFXResource interface
|
||||
/// The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer
|
||||
virtual const String describeSelf() const;
|
||||
|
||||
/// Get the number of mip maps
|
||||
const U32 getMipMapLevels() const { return mMipMapLevels; }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue