mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-03 12:44:26 -07:00
28 lines
818 B
HLSL
28 lines
818 B
HLSL
|
|
// 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
|