Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Barfuss committed Jan 19, 2022
2 parents faa169f + f9a94e8 commit ba379f9
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 34 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -450,3 +450,14 @@ user.keystore
/Assets/SoundStageNative/SoundStageNative/x64/Release/SoundStageNative.tlog/
/Assets/SoundStageNative/SoundStageNative/x64/Release/SoundStageNative.tlog/*
/Assets/SoundStageNative/SoundStageNative/x64/Release/SoundStageNative.vcxproj.FileListAbsolute.txt.meta


/Assets/SoundStageNative/x64/Release/SoundStageNative.exp
/Assets/SoundStageNative/x64/Release/SoundStageNative.exp.meta
/Assets/SoundStageNative/x64/Release/SoundStageNative.iobj
/Assets/SoundStageNative/x64/Release/SoundStageNative.iobj.meta
/Assets/SoundStageNative/x64/Release/SoundStageNative.ipdb
/Assets/SoundStageNative/x64/Release/SoundStageNative.ipdb.meta
/Assets/SoundStageNative/x64/Release/SoundStageNative.lib.meta

/SoundStageNative/x64/Release/SoundStageNative.tlog/*
2 changes: 1 addition & 1 deletion Assets/Materials/coreMaterials/coreMat.mat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Material:
m_Shader: {fileID: 10703, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
Expand Down
8 changes: 4 additions & 4 deletions Assets/Materials/uncategorized/OmniJack.mat
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: OmniJack
m_Shader: {fileID: 4800000, guid: fb944acb6ea5b6b4e961e6f8feb2b64a, type: 3}
m_Shader: {fileID: 10703, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2000
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
Expand Down Expand Up @@ -44,7 +44,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 5cc53a8d45203414fac0966f7dddcff6, type: 3}
m_Texture: {fileID: 2800000, guid: 942488de02b268f4bb5bc3e24973bb7f, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
Expand Down
8 changes: 4 additions & 4 deletions Assets/Materials/uncategorized/OmniPlug.mat
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: OmniPlug
m_Shader: {fileID: 4800000, guid: 31bfda934c27bd54a96d5f3f1ae1d398, type: 3}
m_Shader: {fileID: 10703, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
Expand All @@ -40,7 +40,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 90fe7bcd4d7704e458a78e72426e5163, type: 3}
m_Texture: {fileID: 2800000, guid: 942488de02b268f4bb5bc3e24973bb7f, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
Expand Down
2 changes: 1 addition & 1 deletion Assets/Resources/OVRBuildConfig.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 20553fac56ec59645857c0732b787431, type: 3}
m_Name: OVRBuildConfig
m_EditorClassIdentifier:
androidSDKPath: C:\Program Files\Unity\Hub\Editor\2019.3.0f6\Editor\Data\PlaybackEngines\AndroidPlayer\SDK
androidSDKPath:
gradlePath:
jdkPath:
18 changes: 9 additions & 9 deletions Assets/Scripts/CoreClasses/omniJack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ public override void Awake() {
jackTargetHue = findHue();
jackColor = Color.HSVToRGB(jackTargetHue, 0.8f, 0.5f);
if (homesignal == null) homesignal = transform.parent.GetComponent<signalGenerator>();
mat.SetColor("_EmissionColor", jackColor);
//mat.SetColor("_EmissionColor", jackColor);

if (masterControl.instance != null) {
if (!masterControl.instance.jacksEnabled) GetComponent<Collider>().enabled = false;
}
}

public void setColor(Color c) {
mat.SetColor("_EmissionColor", c);
//mat.SetColor("_EmissionColor", c);
}

public override void setState(manipState state) {
Expand Down Expand Up @@ -90,9 +90,9 @@ public override void setState(manipState state) {
else near.mouseoverEvent(false);
} else if (curState == manipState.selected) {
if (dimCoroutine != null) StopCoroutine(dimCoroutine);
jackColor = Color.HSVToRGB(findHue(), 0.8f, 0.2f);
jackRepRend.material.SetFloat("_EmissionGain", .1f);
jackRepRend.material.SetColor("_TintColor", jackColor);
//jackColor = Color.HSVToRGB(findHue(), 0.8f, 0.2f);
//jackRepRend.material.SetFloat("_EmissionGain", .1f);
//jackRepRend.material.SetColor("_TintColor", jackColor);

if (near == null) plugRep.SetActive(true);
else near.mouseoverEvent(true);
Expand Down Expand Up @@ -136,8 +136,8 @@ IEnumerator dimRoutine() {
float t = 0;
while (t < 1) {
t = Mathf.Clamp01(t + Time.deltaTime * 2);
jackRepRend.material.SetFloat("_EmissionGain", Mathf.Lerp(.1f, 0, t));
jackRepRend.material.SetColor("_TintColor", Color.Lerp(jackColor, Color.black, t));
//jackRepRend.material.SetFloat("_EmissionGain", Mathf.Lerp(.1f, 0, t));
//jackRepRend.material.SetColor("_TintColor", Color.Lerp(jackColor, Color.black, t));
yield return null;
}
plugRep.SetActive(false);
Expand All @@ -148,7 +148,7 @@ IEnumerator dimRoutine() {
public void flash(Color c) {
if (flashCoroutine != null)
StopCoroutine(flashCoroutine);
mat.SetColor("_EmissionColor", jackColor);
//mat.SetColor("_EmissionColor", jackColor);
if (c != Color.black) {
targColor = c;
flashCoroutine = StartCoroutine(flashRoutine());
Expand All @@ -160,7 +160,7 @@ IEnumerator flashRoutine() {
float t = 0;
while (true) {
t += Time.deltaTime * 6;
mat.SetColor("_EmissionColor", Color.Lerp(Color.black, targColor, Mathf.Abs(Mathf.Sin(t))));
//mat.SetColor("_EmissionColor", Color.Lerp(Color.black, targColor, Mathf.Abs(Mathf.Sin(t))));
yield return null;
}
}
Expand Down
24 changes: 12 additions & 12 deletions Assets/Scripts/CoreClasses/omniPlug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public override void Awake() {
mat = transform.GetChild(0).GetChild(0).GetComponent<Renderer>().material;
lr = GetComponent<LineRenderer>();
cordColor = new Color(Random.value, Random.value, Random.value);
lr.material.SetColor("_TintColor", cordColor);
mat.SetColor("_TintColor", cordColor);
mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", cordColor);
//lr.material.SetColor("_TintColor", cordColor);
//mat.SetColor("_TintColor", cordColor);
//mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", cordColor);
mouseoverFeedback.SetActive(false);
plugTrans = transform.GetChild(0);

Expand All @@ -62,14 +62,14 @@ public void Setup(float c, bool outputting, omniPlug other) {
Color jackColor = Color.HSVToRGB(c, .8f, .5f);
cordColor = Color.HSVToRGB(c, .8f, .2f);

mat.SetColor("_TintColor", jackColor);
mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", jackColor);
//mat.SetColor("_TintColor", jackColor);
//mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", jackColor);
wireType = masterControl.instance.WireSetting;
outputPlug = outputting;
otherPlug = other;

if (outputPlug) {
lr.material.SetColor("_TintColor", cordColor);
//lr.material.SetColor("_TintColor", cordColor);
plugPath.Add(otherPlug.transform.position);

updateLineVerts();
Expand All @@ -79,7 +79,7 @@ public void Setup(float c, bool outputting, omniPlug other) {

public void setLineColor(Color c) {
cordColor = c;
lr.material.SetColor("_TintColor", c);
//lr.material.SetColor("_TintColor", c);
}

public void Activate(omniPlug siblingPlug, omniJack jackIn, Vector3[] tempPath, Color tempColor) {
Expand All @@ -90,9 +90,9 @@ public void Activate(omniPlug siblingPlug, omniJack jackIn, Vector3[] tempPath,
Color c2 = Color.HSVToRGB(h, .8f, .2f);

cordColor = tempColor;
lr.material.SetColor("_TintColor", c2);
mat.SetColor("_TintColor", c1);
mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", c1);
//lr.material.SetColor("_TintColor", c2);
//mat.SetColor("_TintColor", c1);
//mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", c1);

if (outputPlug) {

Expand Down Expand Up @@ -209,8 +209,8 @@ void Update() {
float flowVal = 0;
void lrFlowEffect() {
flowVal = Mathf.Repeat(flowVal - Time.deltaTime, 1);
lr.material.mainTextureOffset = new Vector2(flowVal, 0);
lr.material.SetFloat("_EmissionGain", .1f);
//lr.material.mainTextureOffset = new Vector2(flowVal, 0);
//lr.material.SetFloat("_EmissionGain", .1f);
}

Transform closestJack;
Expand Down
Empty file modified Assets/SoundStageNative/arm64/Release/libSoundStageNative.so
100755 → 100644
Empty file.
Binary file modified Assets/SoundStageNative/x64/Release/SoundStageNative.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Assets/Text/Materials/GlowTextMat.mat
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: GlowTextMat
m_Shader: {fileID: 4800000, guid: 660cfd2973aa3554ab459fb9fe85a3bd, type: 3}
m_Shader: {fileID: 10101, guid: 0000000000000000e000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
Expand Down
3 changes: 2 additions & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ PlayerSettings:
16:9: 1
Others: 1
bundleVersion: 0.1.9
preloadedAssets: []
preloadedAssets:
- {fileID: 8207365043489784020, guid: 93c4f4428c8e3814dbf9d469c39e85d4, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down
1 change: 1 addition & 0 deletions SoundStageNative/SoundStageNative.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)\..\Assets\SoundStageNative\$(Platform)\$(Configuration)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down

0 comments on commit ba379f9

Please sign in to comment.