mirror of https://github.com/bjornbytes/lovr.git
Fix lovrInstanceID on Android;
This commit is contained in:
parent
e2bda48739
commit
24484f3930
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue