Style: Declare inline macros as attributes

This commit is contained in:
Thaddeus Crews 2025-04-18 12:00:06 -05:00
parent 09ea7bc6a3
commit dd5460c32a
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
6 changed files with 16 additions and 15 deletions

View file

@ -3,7 +3,7 @@
#[modes]
mode_ninepatch = #define USE_NINEPATCH
/* clang-format off */
#[specializations]
DISABLE_LIGHTING = false
@ -12,13 +12,13 @@ DISABLE_LIGHTING = false
precision highp float;
precision highp int;
/* clang-format on */
layout(location = 0) in highp vec3 vertex;
out highp vec4 position_interp;
void main() {
position_interp = vec4(vertex.x,1,0,1);
position_interp = vec4(vertex.x, 1, 0, 1);
}
#[fragment]

View file

@ -4,7 +4,6 @@
#VERSION_DEFINES
#include "_included.glsl"
void main() {

View file

@ -11,9 +11,8 @@ lines = "#define MODE_LINES";
layout(location = 0) out vec3 uv_interp;
void main() {
#ifdef MODE_LINES
uv_interp = vec3(0,0,1);
uv_interp = vec3(0, 0, 1);
#endif
}
@ -28,5 +27,5 @@ void main() {
layout(location = 0) out vec4 dst_color;
void main() {
dst_color = vec4(1,1,0,0);
dst_color = vec4(1, 1, 0, 0);
}