Style: Declare inline macros as attributes
This commit is contained in:
@ -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]
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
|
||||
#VERSION_DEFINES
|
||||
|
||||
|
||||
#include "_included.glsl"
|
||||
|
||||
void main() {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user