aboutsummaryrefslogtreecommitdiff
path: root/system/shaders/guishader_common.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'system/shaders/guishader_common.hlsl')
-rw-r--r--system/shaders/guishader_common.hlsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/shaders/guishader_common.hlsl b/system/shaders/guishader_common.hlsl
index c912201364..0f2a7a7c47 100644
--- a/system/shaders/guishader_common.hlsl
+++ b/system/shaders/guishader_common.hlsl
@@ -42,6 +42,18 @@ SamplerState LinearSampler : register(s0)
Comparison = NEVER;
};
+cbuffer cbWorld : register(b0)
+{
+ float4x4 worldViewProj;
+ float blackLevel;
+ float colorRange;
+};
+
+inline float4 adjustColorRange(float4 color)
+{
+ return float4(blackLevel + colorRange * color.rgb, color.a);
+}
+
#define STEREO_LEFT_EYE_INDEX 0
#define STEREO_RIGHT_EYE_INDEX 1