Skip to content

Commit 4004562

Browse files
committed
There's a CORRECT way to check unity version inside hlsl files
1 parent 08a2e55 commit 4004562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugins/UniversalShaderGraphExtensions/Editor/UniversalTargetExtensions/Includes/SimpleLitForwardPass.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ half4 frag(PackedVaryings packedInput) : SV_TARGET
115115
// surface.clearCoatSmoothness = saturate(surfaceDescription.CoatSmoothness);
116116
//#endif
117117

118-
#ifdef UNITY_2022_1_OR_NEWER
118+
#if UNITY_VERSION >= 202210
119119
surface.albedo = AlphaModulate(surface.albedo, surface.alpha);
120120
#endif
121121

0 commit comments

Comments
 (0)