summaryrefslogtreecommitdiff
path: root/Runtime/Math/ColorSpaceConversion.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Math/ColorSpaceConversion.cpp
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Math/ColorSpaceConversion.cpp')
-rw-r--r--Runtime/Math/ColorSpaceConversion.cpp17
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