daily update on 20240403 by nitload youmu

This commit is contained in:
YoumuLiu
2024-04-03 08:56:33 +08:00
parent b207f16616
commit 127fcdbfd3
631 changed files with 23499 additions and 2664 deletions
@@ -4,22 +4,22 @@ layout(location = 0) in vec3 aPos;
layout(location = 1) in vec3 aColor;
layout(location = 2) in vec2 aTextCoord;
out vec3 TexColor;
out vec4 TexColor;
out vec2 TexCoord;
uniform vec3 color;
uniform vec4 color;
void main()
{
float as = color.z-0.5;
float ac = sqrt(1 - as * as);
float as = sin( color.w );
float ac = cos( color.w );
mat4x4 rotation = mat4x4(
ac,-as,0,0,
as,ac,0,0,
0,0,1,0,
0,0,0,1
);
gl_Position = rotation * (vec4(aPos.xyz,1.0) + vec4(color.xy-vec2(0.5,0.5),0.0,-2.0));
gl_Position = rotation * (vec4(aPos.xyz,1.0) + vec4(color.xyz-vec3(0.5,0.5,0.5),0.0));
TexColor = color;
TexCoord = aTextCoord;
}