Files
2022-01-22 20:13:49 -08:00

26 lines
811 B
HLSL
Vendored

// 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