mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-03 04:34:26 -07:00
30 lines
875 B
HLSL
30 lines
875 B
HLSL
// Alloy Physical Shader Framework
|
|
// Copyright 2013-2017 RUST LLC.
|
|
// http://www.alloy.rustltd.com/
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
/// @file Details1.cginc
|
|
/// @brief Unity Terrain details WavingDoublePass surface shader definition.
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef ALLOY_SHADERS_DEFINITION_DETAILS1_CGINC
|
|
#define ALLOY_SHADERS_DEFINITION_DETAILS1_CGINC
|
|
|
|
#include "Assets/Alloy/Shaders/Lighting/Standard.cginc"
|
|
#include "Assets/Alloy/Shaders/Type/Details1.cginc"
|
|
|
|
void aSurfaceShader(
|
|
inout ASurface s)
|
|
{
|
|
half4 base = aSampleBase(s) * s.vertexColor;
|
|
|
|
s.baseColor = base.rgb;
|
|
s.opacity = base.a;
|
|
aCutout(s);
|
|
s.specularity = 0.5h;
|
|
s.roughness = 1.0h;
|
|
s.opacity *= s.vertexColor.a;
|
|
}
|
|
|
|
#endif // ALLOY_SHADERS_DEFINITION_DETAILS1_CGINC
|