virtual world hierarchy pose
This commit is contained in:
parent
5095d48aa0
commit
93e7cae6b0
2 changed files with 11 additions and 7 deletions
15
src/Arts.cs
15
src/Arts.cs
|
@ -44,13 +44,11 @@ static class Arts
|
|||
|
||||
public static void Frame()
|
||||
{
|
||||
bool vr = Device.DisplayBlend == DisplayBlend.Opaque;
|
||||
// render hands if not in mixed reality
|
||||
Input.HandVisible(Handed.Max, false);
|
||||
if (vr)
|
||||
{
|
||||
// background standin if no passthrough
|
||||
}
|
||||
// Input.HandVisible(Handed.Max, false);
|
||||
|
||||
// world
|
||||
Matrix m4_world = Mono.world_pose.ToMatrix();
|
||||
Hierarchy.Push(m4_world);
|
||||
|
||||
meshes["Food"].Draw(
|
||||
mat_mono,
|
||||
|
@ -76,6 +74,9 @@ static class Arts
|
|||
);
|
||||
}
|
||||
|
||||
Hierarchy.Pop();
|
||||
|
||||
|
||||
// menu
|
||||
Matrix m4_menu = Mono.menu_pose.ToMatrix(Mono.menu_scale);
|
||||
Hierarchy.Push(m4_menu);
|
||||
|
|
|
@ -9,6 +9,8 @@ static class Mono
|
|||
|
||||
public static int score;
|
||||
|
||||
public static Pose world_pose;
|
||||
|
||||
public static DeltaBool menu;
|
||||
public static Pose menu_pose;
|
||||
public static float menu_scale;
|
||||
|
@ -24,6 +26,7 @@ static class Mono
|
|||
public static void Init()
|
||||
{
|
||||
game_time = 0.0;
|
||||
world_pose = new(0, 0, 0);
|
||||
menu = new(true);
|
||||
menu_pose = new(0, 0, 0);
|
||||
menu_scale = 1 * U.cm;
|
||||
|
|
Loading…
Add table
Reference in a new issue