daily update on 20240610 by nitload youmu

This commit is contained in:
Nitload
2024-06-10 15:11:01 +08:00
parent c0093f7b5c
commit f6963b8e00
96 changed files with 2927 additions and 2290 deletions
@@ -56,7 +56,7 @@ namespace StgSharp
private VertexArray vao;
private VertexBuffer vbo;
public MainRenderStream(RenderStreamConstructArgs args) : base(args)
public MainRenderStream(ViewPort args) : base(args,(100,100,100))
{
}
@@ -89,23 +89,34 @@ namespace StgSharp
fragment.Compile(0, Shader.FromCodeFile("Shader\\main.frag"));
fragment.AttachTo(0, shader);
shader.Link();
Triangle tri = new Triangle(
-0.5f, -0.3f, 0.0f,
0.5f, -0.5f, 0.0f,
0.0f, 0.5f, 0.0f
-0.5f, -0.3f,
0.5f, -0.5f,
0.0f, 0.5f
);
PlainCoordinate p = new PlainCoordinate(
PlainCoordinate.StandardPlainCoordination,
new Point(0,0,0),
new vec3d(1, 0, 130), new vec3d(0, 1, 130)
);
Rectangle rec = new Rectangle(
-0.3f, 0.3f, 130.0f,
0.3f, 0.3f, 130.0f,
0.3f, -0.3f, 130.0f,
-0.3f, -0.3f, 130.0f
p,
-0.3f, 0.3f,
0.3f, 0.3f,
0.3f, -0.3f,
-0.3f, -0.3f
);
Polygon5 polygon = new Polygon5(
-0.4f, 0.5f, 0.0f,
0.5f, 0.5f, 0.0f,
0.6f, -0.5f, 0.0f,
0, -1, 0,
-0.7f, -0.5f, 0.0f
-0.4f, 0.5f,
0.5f, 0.5f,
0.6f, -0.5f,
0, -1,
-0.7f, -0.5f
);
vao = CreateVertexArray(1);
vbo = CreateVertexBuffer(2);