summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/leedsBuilding_VS.hlsl
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-09 19:20:32 +0100
committeraap <aap@papnet.eu>2021-01-09 19:20:32 +0100
commit03c5fdef4391b403955120aeb74e687c0a2c9578 (patch)
treed6b589e2690aaaa038656957ad65d30954e7abed /src/extras/shaders/leedsBuilding_VS.hlsl
parentscript (diff)
downloadre3-03c5fdef4391b403955120aeb74e687c0a2c9578.tar
re3-03c5fdef4391b403955120aeb74e687c0a2c9578.tar.gz
re3-03c5fdef4391b403955120aeb74e687c0a2c9578.tar.bz2
re3-03c5fdef4391b403955120aeb74e687c0a2c9578.tar.lz
re3-03c5fdef4391b403955120aeb74e687c0a2c9578.tar.xz
re3-03c5fdef4391b403955120aeb74e687c0a2c9578.tar.zst
re3-03c5fdef4391b403955120aeb74e687c0a2c9578.zip
Diffstat (limited to '')
-rw-r--r--src/extras/shaders/leedsBuilding_VS.hlsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/extras/shaders/leedsBuilding_VS.hlsl b/src/extras/shaders/leedsBuilding_VS.hlsl
index dd3592e9..361d5058 100644
--- a/src/extras/shaders/leedsBuilding_VS.hlsl
+++ b/src/extras/shaders/leedsBuilding_VS.hlsl
@@ -1,5 +1,8 @@
#include "standardConstants.h"
+#define surfEmissive (surfProps.w)
+
+
float4 emissive : register(c41);
float4 ambient : register(c42);
@@ -33,7 +36,7 @@ VS_out main(in VS_in input)
output.Color = input.Prelight;
output.Color.rgb *= ambient.rgb;
- output.Color.rgb += emissive.rgb;
+ output.Color.rgb += emissive.rgb*surfEmissive;
output.Color = clamp(output.Color, 0.0, 1.0);
output.Color.a *= matCol.a;