Fix lovrInstanceID on Android;

This commit is contained in:
bjorn 2021-01-25 13:10:25 -07:00
parent e2bda48739
commit 24484f3930
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ const char* lovrShaderVertexPrefix = ""
"#if defined MULTIVIEW \n"
"layout(num_views = 2) in; \n"
"#define lovrViewID (int(gl_ViewID_OVR)) \n"
"#define lovrInstanceID gl_InstanceID \n"
"#elif defined INSTANCED_STEREO \n"
"#define lovrViewID gl_ViewportIndex \n"
"#define lovrInstanceID (gl_InstanceID / lovrViewportCount) \n"