Firstborn/Assets/AwesomeTechnologies/VegetationStudioPro/Runtime/Shaders/Resources/DitherCrossfade_Stacked.sur...
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

22 lines
621 B
Plaintext

BEGIN_DEFINES
#pragma multi_compile_local _ LOD_FADE_CROSSFADE
END_DEFINES
BEGIN_SUBSHADERS
"DitherCrossfade_Base_Stacked.surfshader"
END_SUBSHADERS
BEGIN_CODE
void SurfaceFunction(inout Surface o, ShaderData d)
{
//#if LOD_FADE_CROSSFADE
float4 screenPosNorm = d.screenPos / d.screenPos.w;
screenPosNorm.z = ( UNITY_NEAR_CLIP_VALUE >= 0 ) ? screenPosNorm.z : screenPosNorm.z * 0.5 + 0.5;
float2 clipScreen = screenPosNorm.xy * _ScreenParams.xy;
ApplyDitherCrossFadeVSP(clipScreen,unity_LODFade.x);
//#endif
}
END_CODE