mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Style: Declare inline macros as attributes
This commit is contained in:
parent
09ea7bc6a3
commit
dd5460c32a
6 changed files with 16 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue