Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example/pointcloud editor #17

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Linting
  • Loading branch information
jk-jacki authored and github-actions[bot] committed Aug 9, 2022
commit c2b024c8c318dc3ac1902bb9c8c3962ffc8ee083
2 changes: 1 addition & 1 deletion Examples/Complete/MuVista/Core/GUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ public GUI(int width, int height, CanvasRenderMode canvasRenderMode, Transform m

}
}
}
}
8 changes: 4 additions & 4 deletions Examples/Complete/MuVista/Core/MuVista.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public override async Task InitAsync()
_mainCam.Layer = -1;
_mainCam.Active = true;


_mainCamTransform = new Transform()
{
Rotation = new float3(_angleVert, _angleHorz, 0),
Expand All @@ -86,7 +86,7 @@ public override async Task InitAsync()
Scale = new float3(1, 1, 1),
Translation = new float3(0, 0, 0)
};

_sphere_Fx = MakeEffect.FromBRDF
(
albedoColor: float4.One,
Expand All @@ -107,7 +107,7 @@ public override async Task InitAsync()
// Create the interaction handler
_sih = new SceneInteractionHandler(_gui);


//Scene with Main Camera and Mesh
_sphereScene = new SceneContainer
{
Expand Down Expand Up @@ -159,7 +159,7 @@ public override void RenderAFrame()
_sceneRenderer.Render(RC);
_guiRenderer.Render(RC);


if (!Input.Mouse.Desc.Contains("Android"))
_sih.CheckForInteractiveObjects(RC, Input.Mouse.Position, Width, Height);
if (Input.Touch.GetTouchActive(TouchPoints.Touchpoint_0) && !Input.Touch.TwoPoint)
Expand Down
4 changes: 2 additions & 2 deletions Examples/Complete/MuVista/Core/Sphere.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Sphere(float radius, int longSegments, int latSegments)
}
}

for (int j = 0, k = 0; j < (latSegments - 1) * longSegments; j++, k++)
for (int j = 0, k = 0; j < (latSegments - 1) * longSegments; j++, k++)
{
if ((k + 1) % (longSegments + 1) == 0)
{
Expand All @@ -81,4 +81,4 @@ public Sphere(float radius, int longSegments, int latSegments)
UVs = uvs.ToArray();
}
}
}
}
Loading