Add shaders

This commit is contained in:
Williams
2026-05-19 15:33:18 +02:00
committed by Lucien
parent 593c2e75b2
commit cd9df45d08
1358 changed files with 2429155 additions and 0 deletions
@@ -0,0 +1,26 @@
Shader "GlobalSnow/SnowForReflections" {
SubShader {
CGPROGRAM
#pragma surface surf BlinnPhong exclude_path:deferred exclude_path:prepass nometa
#pragma target 3.0
#pragma fragmentoption ARB_precision_hint_fastest
#pragma multi_compile __ GLOBALSNOW_FLAT_SHADING
#define GLOBALSNOW_ENABLE_SLOPE_CONTROL 1
#define GLOBALSNOW_IS_TERRAIN 1
#include "GlobalSnow.cginc"
void surf (Input IN, inout SurfaceOutput o) {
// Check alpha
fixed4 textureColor = tex2D(_MainTex, IN.uv_MainTex);
clip(textureColor.a + textureColor.g - 0.1);
SetSnowCoverage(IN, o);
o.Albedo = lerp(textureColor.rgb, o.Albedo, o.Alpha);
}
ENDCG
}
Fallback Off
}