mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-03 04:34:26 -07:00
26 lines
811 B
HLSL
26 lines
811 B
HLSL
// Alloy Physical Shader Framework
|
|
// Copyright 2013-2017 RUST LLC.
|
|
// http://www.alloy.rustltd.com/
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
/// @file Multiplicative.cginc
|
|
/// @brief Multiplicative deferred decal surface shader definition.
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef ALLOY_SHADERS_DEFINITION_DECAL_MULTIPLICATIVE_CGINC
|
|
#define ALLOY_SHADERS_DEFINITION_DECAL_MULTIPLICATIVE_CGINC
|
|
|
|
#include "Assets/Alloy/Shaders/Lighting/Unlit.cginc"
|
|
#include "Assets/Alloy/Shaders/Type/DecalMultiplicative.cginc"
|
|
|
|
void aSurfaceShader(
|
|
inout ASurface s)
|
|
{
|
|
half4 base = aBase(s);
|
|
|
|
s.baseColor = aLerpWhiteTo(base.rgb, base.a);
|
|
aTeamColor(s);
|
|
}
|
|
|
|
#endif // ALLOY_SHADERS_DEFINITION_DECAL_MULTIPLICATIVE_CGINC
|