daily update on 20240328 by nitload youmu, building thread blueprint

This commit is contained in:
YoumuLiu
2024-03-29 11:05:57 +08:00
parent ea2a4a7dcb
commit b207f16616
68 changed files with 1083 additions and 2181 deletions
@@ -11,7 +11,15 @@ uniform vec3 color;
void main()
{
gl_Position = vec4(aPos.xyz,1.0) + vec4(color.xy-vec2(0.5,0.5),0.0,0.0);
float as = color.z-0.5;
float ac = sqrt(1 - as * as);
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));
TexColor = color;
TexCoord = aTextCoord;
}