X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscoretext.h;h=eea32ee1d651dfcbf1a03a8550c4e80e2c4a291e;hb=bdac014448b6ec968fe645f1581f321144f07dba;hp=304715c39223e3f395e7719381b23b4989932317;hpb=4c49b11c317034277be4d117c5d2847ef2f3492b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scoretext.h b/shaders/scoretext.h index 304715c..eea32ee 100644 --- a/shaders/scoretext.h +++ b/shaders/scoretext.h @@ -7,12 +7,14 @@ static struct vg_shader _shader_scoretext = { .link = shader_scoretext_link, .vs = { -.orig_file = "../shaders/scoretext.vs", +.orig_file = "../../shaders/scoretext.vs", .static_src = "layout (location=0) in vec3 a_co;\n" "layout (location=1) in vec3 a_norm;\n" -"layout (location=2) in vec4 a_colour;\n" -"layout (location=3) in vec2 a_uv;\n" +"layout (location=2) in vec2 a_uv;\n" +"layout (location=3) in vec4 a_colour;\n" +"layout (location=4) in vec4 a_weights;\n" +"layout (location=5) in ivec4 a_groups;\n" "\n" "#line 2 0 \n" "\n" @@ -29,12 +31,12 @@ static struct vg_shader _shader_scoretext = { "\n" "void main()\n" "{\n" -" float w = a_colour.g + fract(uInfo.z+0.5)-0.75;\n" +" float w = (a_colour.g * 8.0)-5.5 + fract(uInfo.z+0.5);\n" " float c = -cos(w*0.2);\n" " float s = -sin(w*0.2);\n" " float r = 0.2;\n" "\n" -" float w1 = clamp( w*4.0 - a_co.y*10.0, -1.0, 1.0 ) *(3.14159265*0.5);\n" +" float w1 = clamp( w*4.0 - a_co.y*10.0, -1.0, 1.0 ) * (3.14159265*0.5);\n" " float c1 = cos(w1);\n" " float s1 = sin(w1);\n" "\n" @@ -57,7 +59,7 @@ static struct vg_shader _shader_scoretext = { ""}, .fs = { -.orig_file = "../shaders/vblend.fs", +.orig_file = "../../shaders/vblend.fs", .static_src = "out vec4 FragColor;\n" "\n"