Skip to content

Commit 5e90f71

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.3] [PS5, PS4] Fix built-in RP warnings when using shadergraph shaders on PS4 or PS5
1 parent b269bc7 commit 5e90f71

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • Packages/com.unity.shadergraph/Editor/Generation/Targets/BuiltIn/ShaderLibrary/Shim

Packages/com.unity.shadergraph/Editor/Generation/Targets/BuiltIn/ShaderLibrary/Shim/HLSLSupportShim.hlsl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@
1616

1717
#define SHADOWS_NATIVE
1818

19+
#undef fixed
1920
#define fixed real
21+
#undef fixed2
2022
#define fixed2 real2
23+
#undef fixed3
2124
#define fixed3 real3
25+
#undef fixed4
2226
#define fixed4 real4
27+
#undef fixed4x4
2328
#define fixed4x4 real4x4
29+
#undef fixed3x3
2430
#define fixed3x3 real3x3
31+
#undef fixed2x2
2532
#define fixed2x2 real2x2
2633

2734
#define UNITY_INITIALIZE_OUTPUT(type,name) ZERO_INITIALIZE(type, name)

0 commit comments

Comments
 (0)