mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-03 04:34:26 -07:00
36 lines
956 B
HLSL
36 lines
956 B
HLSL
// Alloy Physical Shader Framework
|
|
// Copyright 2013-2017 RUST LLC.
|
|
// http://www.alloy.rustltd.com/
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
/// @file DecalAdditive.cginc
|
|
/// @brief Additive deferred decal surface shader definition.
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef ALLOY_SHADERS_DEFINITION_DECAL_ADDITIVE_CGINC
|
|
#define ALLOY_SHADERS_DEFINITION_DECAL_ADDITIVE_CGINC
|
|
|
|
#define A_EMISSIVE_COLOR_ON
|
|
#define A_MAIN_TEXTURES_ON
|
|
#define A_MAIN_TEXTURES_MATERIAL_MAP_OFF
|
|
|
|
#include "Assets/Alloy/Shaders/Lighting/Unlit.cginc"
|
|
#include "Assets/Alloy/Shaders/Type/DecalAdditive.cginc"
|
|
|
|
void aSurfaceShader(
|
|
inout ASurface s)
|
|
{
|
|
aParallax(s);
|
|
aDissolve(s);
|
|
aMainTextures(s);
|
|
aDetail(s);
|
|
aTeamColor(s);
|
|
aDecal(s);
|
|
aRim(s);
|
|
aEmission(s);
|
|
|
|
s.emissiveColor += s.baseColor;
|
|
}
|
|
|
|
#endif // ALLOY_SHADERS_DEFINITION_DECAL_ADDITIVE_CGINC
|