You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MacOS 10.15.7 build 19H1217, AMD Radeon Pro 5300M, GLES3
Issue description
When I try to declare a global const array in a shader whose elements are vec2 or vec3, I get the error Expected initialization of constant.
It does work inside of a function, though. But not globally.
The Docs don't say anything about globalconst vec2[] or other types not being supported.
Godot version
3.2.3.stable
System information
MacOS 10.15.7 build 19H1217, AMD Radeon Pro 5300M, GLES3
Issue description
When I try to declare a global const array in a shader whose elements are vec2 or vec3, I get the error
Expected initialization of constant
.It does work inside of a function, though. But not globally.
The Docs don't say anything about global
const vec2[]
or other types not being supported.Steps to reproduce
Create a shader with the following content:
Minimal reproduction project
No need of a project, just using that code in a shader will do.
The text was updated successfully, but these errors were encountered: