color cube uwu
This commit is contained in:
parent
82d955aa07
commit
f8c9373246
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@ class ColorCube {
|
||||||
static Model colorCube = Model.FromFile("colorcube.glb", Shader.UIBox);
|
static Model colorCube = Model.FromFile("colorcube.glb", Shader.UIBox);
|
||||||
Bounds bounds = new Bounds(Vec3.Zero, Vec3.One * 1.25f);
|
Bounds bounds = new Bounds(Vec3.Zero, Vec3.One * 1.25f);
|
||||||
|
|
||||||
|
public bool picker = true;
|
||||||
public Color color = Color.White * 0.5f;
|
public Color color = Color.White * 0.5f;
|
||||||
public float thickness {
|
public float thickness {
|
||||||
set {
|
set {
|
||||||
|
@ -39,6 +40,9 @@ class ColorCube {
|
||||||
public void Step(Matrix matrix) {
|
public void Step(Matrix matrix) {
|
||||||
colorCube.Draw(matrix);
|
colorCube.Draw(matrix);
|
||||||
|
|
||||||
|
if(!picker)
|
||||||
|
return;
|
||||||
|
|
||||||
for (int h = 0; h < (int)Handed.Max; h++) {
|
for (int h = 0; h < (int)Handed.Max; h++) {
|
||||||
// Get the pose for the index fingertip
|
// Get the pose for the index fingertip
|
||||||
Hand hand = Input.Hand((Handed)h);
|
Hand hand = Input.Hand((Handed)h);
|
||||||
|
|
Loading…
Add table
Reference in a new issue