daily update on 20240828 by nitload youmu, autotexture added

This commit is contained in:
Nitload
2024-08-28 10:58:31 +08:00
parent d082071f2d
commit 1ee4e4a42f
586 changed files with 60910 additions and 123106 deletions
+24 -24
View File
@@ -43,30 +43,6 @@ namespace StgSharp.Geometries
public interface IInstancing
{
public int BufferId
{
get;
internal set;
}
public vec3d CenterPositionGlobal
{
get;
internal set;
}
public vec3d Coord
{
get { return GlobalBuffer.CoordAndRotationList[BufferId].XYZ; }
set { GlobalBuffer.CoordAndRotationList[BufferId] = new vec4d(value.vec); }
}
public IInstancingBuffer GlobalBuffer
{
get;
internal set;
}
public float Rotation
{
get { return GlobalBuffer.CoordAndRotationList[BufferId].W; }
@@ -89,6 +65,30 @@ namespace StgSharp.Geometries
get; set;
}
public IInstancingBuffer GlobalBuffer
{
get;
internal set;
}
public int BufferId
{
get;
internal set;
}
public vec3d CenterPositionGlobal
{
get;
internal set;
}
public vec3d Coord
{
get { return GlobalBuffer.CoordAndRotationList[BufferId].XYZ; }
set { GlobalBuffer.CoordAndRotationList[BufferId] = new vec4d(value.vec); }
}
public void Move()
{
(vec3d coord, float rotation) = (Coord, Rotation);