1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

Shader compilation fix:

Fix shader compilation crash on custom shaders
using VIEW_INDEX on Vulkan Clustered Forward
renderer.
This commit is contained in:
SaracenOne
2025-06-08 03:29:47 +01:00
parent 42c7f14422
commit 761d5474dc

View File

@@ -145,6 +145,7 @@ ivec3 multiview_uv(ivec2 uv) {
}
layout(location = 11) out vec4 combined_projected;
#else // USE_MULTIVIEW
#define ViewIndex 0
vec2 multiview_uv(vec2 uv) {
return uv;
}
@@ -919,6 +920,7 @@ ivec3 multiview_uv(ivec2 uv) {
}
layout(location = 11) in vec4 combined_projected;
#else // USE_MULTIVIEW
#define ViewIndex 0
vec2 multiview_uv(vec2 uv) {
return uv;
}