diff options
Diffstat (limited to 'Runtime/Math/ColorSpaceConversion.cpp')
-rw-r--r-- | Runtime/Math/ColorSpaceConversion.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Runtime/Math/ColorSpaceConversion.cpp b/Runtime/Math/ColorSpaceConversion.cpp new file mode 100644 index 0000000..08d58f5 --- /dev/null +++ b/Runtime/Math/ColorSpaceConversion.cpp @@ -0,0 +1,17 @@ +#include "UnityPrefix.h" +#include "ColorSpaceConversion.h" +#include "Runtime/Misc/PlayerSettings.h" + + +ColorSpace GetActiveColorSpace () +{ + if (GetPlayerSettingsPtr()) + return GetPlayerSettings().GetValidatedColorSpace(); + else + return kUninitializedColorSpace; +} + +/* + TODO: + * Fog colors in fixed function pipeline are not adjusted. Ask aras how the fog color gets put into the shader. ApplyFog does something with builtin shader params but it's never passed to shaderstate??? WTF. +*/
\ No newline at end of file |