From a89f892640cf12f75c7ce18e6e88c70a8d3965ed Mon Sep 17 00:00:00 2001 From: Uneven Prankster Date: Sat, 23 Sep 2023 19:28:45 -0300 Subject: things can always be nicer :D --- assets/gs_full.glsl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'assets/gs_full.glsl') diff --git a/assets/gs_full.glsl b/assets/gs_full.glsl index 4b3e3f3..aa6b662 100644 --- a/assets/gs_full.glsl +++ b/assets/gs_full.glsl @@ -1,4 +1,4 @@ -@vertex +#if defined(VERTEX_SHADER) in vec3 vertexPosition; in vec2 vertexTexCoord; in vec3 vertexNormal; @@ -16,9 +16,7 @@ void main() gl_Position = mvp*vec4(vertexPosition, 1.0); } -@vs_end - -@fragment +#elif defined(FRAG_SHADER) in vec2 fragTexCoord; in vec4 fragColor; @@ -33,4 +31,4 @@ void main() float gray = dot(texelColor.rgb, vec3(0.299, 0.587, 0.114)); finalColor = vec4(gray, gray, gray, texelColor.a); } -@fs_end \ No newline at end of file +#endif \ No newline at end of file -- cgit v1.2.3