daily update on 20240513 by nitload youmu, instancing render added

This commit is contained in:
YoumuLiu
2024-05-13 03:39:54 +08:00
parent 56459deec5
commit a3506c96a3
78 changed files with 2562 additions and 1098 deletions
+12 -11
View File
@@ -167,9 +167,9 @@ namespace StgSharp.Graphics
_isLookAtAvailable = false;
Linear.Normalize(ref direction, ref up);
Linear.Orthogonalize(ref direction, ref up);
vec3d right = Linear.Normalize(Linear.Cross(up, direction));
vec3d right = Linear.Orthogonalize(Linear.Cross(up, direction));
cameraAtt.colum0.vec = right.vec;
cameraAtt.colum1.vec = up.vec;
@@ -209,12 +209,21 @@ namespace StgSharp.Graphics
Console.WriteLine(Projection);
Console.WriteLine(Projection * View);
Console.WriteLine(View);
foreach (var item in vec)
foreach (vec4d item in vec)
{
Console.Write($"{Projection * View * item};");
}
}
ShaderStruct IglConvertable.GetConvertedGLtype()
{
throw new NotImplementedException();
}
~Camera()
{
}
#region ratation
public void Yaw(Radius r)
@@ -306,14 +315,6 @@ namespace StgSharp.Graphics
#endregion
ShaderStruct IglConvertable.GetConvertedGLtype()
{
throw new NotImplementedException();
}
~Camera()
{
}
}
}