diff options
Diffstat (limited to 'src/extras/shaders/leedsBuilding_VS.hlsl')
-rw-r--r-- | src/extras/shaders/leedsBuilding_VS.hlsl | 5 |
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; |