From 38dea6d847713d8696bbf82ddc1cf75dec20eb16 Mon Sep 17 00:00:00 2001 From: Alexandr Shamarin Date: Wed, 20 Nov 2024 12:52:43 +0300 Subject: [PATCH] Add define gl_InstanceID of gl_InstanceIndex for webgpu (#7123) --- src/platform/graphics/shader-chunks/vert/webgpu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/graphics/shader-chunks/vert/webgpu.js b/src/platform/graphics/shader-chunks/vert/webgpu.js index 3bcee894990..4978500f9c1 100644 --- a/src/platform/graphics/shader-chunks/vert/webgpu.js +++ b/src/platform/graphics/shader-chunks/vert/webgpu.js @@ -15,4 +15,5 @@ export default /* glsl */` #define WEBGPU #define VERTEXSHADER #define gl_VertexID gl_VertexIndex +#define gl_InstanceID gl_InstanceIndex `;