Skip to content

Commit 3a6f778

Browse files
gabrieldelacruzGitHub Enterprise
authored andcommitted
Define CameraBuffer type in URP (#273)
1 parent f550e97 commit 3a6f778

File tree

1 file changed

+8
-0
lines changed
  • com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders

1 file changed

+8
-0
lines changed

com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders/VFXDefines.hlsl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
#define USE_FOG 1
44
#endif
55

6+
#if defined(UNITY_STEREO_INSTANCING_ENABLED) || defined(UNITY_STEREO_MULTIVIEW_ENABLED)
7+
#define CameraBuffer Texture2DArray
8+
#define VFXSamplerCameraBuffer VFXSampler2DArray
9+
#else
10+
#define CameraBuffer Texture2D
11+
#define VFXSamplerCameraBuffer VFXSampler2D
12+
#endif
13+
614
// this is only necessary for the old VFXTarget pathway
715
// it defines the macro used to access hybrid instanced properties
816
// (new HDRP/URP Target pathway overrides the type so this is never used)

0 commit comments

Comments
 (0)