Files
H3VR-TNH-Quality-of-Life-Im…/Assets/Alloy/Shaders/Definition/Details0.cginc
T

28 lines
818 B
HLSL
Raw Normal View History

2022-01-22 20:13:49 -08:00
// Alloy Physical Shader Framework
// Copyright 2013-2017 RUST LLC.
// http://www.alloy.rustltd.com/
/////////////////////////////////////////////////////////////////////////////////
/// @file Details0.cginc
/// @brief Unity Terrain details VertexLit surface shader definition.
/////////////////////////////////////////////////////////////////////////////////
#ifndef ALLOY_SHADERS_DEFINITION_DETAILS0_CGINC
#define ALLOY_SHADERS_DEFINITION_DETAILS0_CGINC
#include "Assets/Alloy/Shaders/Lighting/Standard.cginc"
#include "Assets/Alloy/Shaders/Type/Standard.cginc"
void aSurfaceShader(
inout ASurface s)
{
half4 base = aSampleBase(s) * s.vertexColor;
s.baseColor = base.rgb;
s.opacity = base.a;
s.specularity = 0.5h;
s.roughness = 1.0h;
}
#endif // ALLOY_SHADERS_DEFINITION_DETAILS0_CGINC