Skip to content

Commit

Permalink
Renamed to Art-Net Light
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbourgeois committed Sep 20, 2018
1 parent 6bbc37a commit dab0892
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Assets/Scripts/ArtNetControllable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public class ArtNetControllable : Controllable {
[Header("Values")]

[OSCProperty(isInteractible = false)]
public int ColorRed;
public int Red;

[OSCProperty(isInteractible = false)]
public int ColorGreen;
public int Green;

[OSCProperty(isInteractible = false)]
public int ColorBlue;
public int Blue;
}
12 changes: 6 additions & 6 deletions Assets/Scripts/ArtNetReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public int ListeningPort

public int StartChannel;

public int ColorRed;
public int ColorGreen;
public int ColorBlue;
public int Red;
public int Green;
public int Blue;

public bool Running;

Expand Down Expand Up @@ -82,9 +82,9 @@ private void ThreadMethod()
if (BreakThread)
break;

ColorRed = receiveBytes[17 + StartChannel];
ColorGreen = receiveBytes[18 + StartChannel];
ColorBlue = receiveBytes[19 + StartChannel];
Red = receiveBytes[17 + StartChannel];
Green = receiveBytes[18 + StartChannel];
Blue = receiveBytes[19 + StartChannel];
}
}
Running = false;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/MaterialInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public class MaterialInterface : MonoBehaviour {

// Update is called once per frame
void Update () {
QuadMaterial.color = new Color((Receiver.ColorRed / 255.0f), (Receiver.ColorGreen / 255.0f), (Receiver.ColorBlue / 255.0f));
QuadMaterial.color = new Color((Receiver.Red / 255.0f), (Receiver.Green / 255.0f), (Receiver.Blue / 255.0f));
}
}
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PlayerSettings:
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: Theoriz
productName: DMX Light
productName: Art-Net Light
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
Expand Down

0 comments on commit dab0892

Please sign in to comment.