Skip to content

Commit

Permalink
version 5.2.1-r.1
Browse files Browse the repository at this point in the history
  • Loading branch information
srl87 committed May 22, 2023
1 parent 8f82a80 commit ead3179
Show file tree
Hide file tree
Showing 2,863 changed files with 1,183,746 additions and 0 deletions.
8 changes: 8 additions & 0 deletions com.htc.upm.wave.essence/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,170 changes: 1,170 additions & 0 deletions com.htc.upm.wave.essence/Editor/EssenceSettingsProvider.cs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions com.htc.upm.wave.essence/Editor/EssenceSettingsProvider.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions com.htc.upm.wave.essence/Editor/PackageEssenceAsset.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using UnityEngine;

#if UNITY_EDITOR
namespace Wave.Essence.Editor
{
[Serializable]
public class PackageEssenceAsset : ScriptableObject
{
public bool importedControllerModelPackage = false;
public bool importedInputModulePackage = false;
public bool importedHandModelPackage = false;
public bool importedInteractionModePackage = false;
public bool importedTrackerModelPackage = false;
}
}
#endif
11 changes: 11 additions & 0 deletions com.htc.upm.wave.essence/Editor/PackageEssenceAsset.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions com.htc.upm.wave.essence/Editor/ShaderStripping.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#if UNITY_2018_2_OR_NEWER && UNITY_EDITOR

using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Rendering;
using UnityEngine;
using UnityEngine.Rendering;

namespace Wave.Essence
{
[InitializeOnLoad]
public static class ShaderStripping
{
private const string MenuItem = "Wave/Enable Shader Stripping";
private const string EditorPrefEntry = "WaveShaderStripping";

static ShaderStripping()
{
isShaderStrippingEnabled = EditorPrefs.GetBool(EditorPrefEntry, false);
}

static bool isShaderStrippingEnabled = false;

[MenuItem(MenuItem, true)]
private static bool SetShaderStrippingVaildate()
{
isShaderStrippingEnabled = EditorPrefs.GetBool(EditorPrefEntry, false);

#if URP_INSTALLED

if (GraphicsSettings.renderPipelineAsset != null)
{
isShaderStrippingEnabled = false;
EditorPrefs.SetBool(EditorPrefEntry, isShaderStrippingEnabled);
Menu.SetChecked(MenuItem, isShaderStrippingEnabled);
Debug.Log("Wave Essence Shader Stripping: Current Rendering Pipeline not supported.");
return false;
}

#endif
Menu.SetChecked(MenuItem, isShaderStrippingEnabled);

return true;
}

[MenuItem(MenuItem, false, 2)]
private static void SetShaderStripping()
{
isShaderStrippingEnabled = !isShaderStrippingEnabled;
Menu.SetChecked(MenuItem, isShaderStrippingEnabled);
EditorPrefs.SetBool(EditorPrefEntry, isShaderStrippingEnabled);
}

private class ShaderStrippingBuildProcessor : IPreprocessShaders
{
public int callbackOrder { get { return 0; } }

public void OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)
{
isShaderStrippingEnabled = EditorPrefs.GetBool(EditorPrefEntry, false);

if (!isShaderStrippingEnabled) return;

if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.Android)
{
//Debug.Log("Wave Essence Shader Stripping: Stripping Shaders");
List<GraphicsTier> stripTierList = new List<GraphicsTier>();
stripTierList.Add(GraphicsTier.Tier1);
stripTierList.Add(GraphicsTier.Tier3);

for (int i = data.Count - 1; i >= 0; --i)
{
if (stripTierList.Contains(data[i].graphicsTier))
{
//Debug.Log("WaveEditorShaderStripping: Remove Shader at " + i);
data.RemoveAt(i);
}
}
}
}
}
}
}
#endif
11 changes: 11 additions & 0 deletions com.htc.upm.wave.essence/Editor/ShaderStripping.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions com.htc.upm.wave.essence/Editor/Wave.Essence.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Wave.Essence.Editor",
"references": [
"Wave.Essence",
"Wave.XRSDK"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [
{
"name": "com.unity.render-pipelines.universal",
"expression": "0.1.0",
"define": "URP_INSTALLED"
}
],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions com.htc.upm.wave.essence/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
================================================================================
Copyright 2017-2020, HTC Corporation. All rights reserved.
================================================================================

Unless otherwise provided herein or in the folder you download or use, the information in this Work is the exclusive property of HTC.

Please note that this Work includes Wave SDK native binary which is subject to a sperate license agreement described below. You can find more detailed information about Wave SDK and its available plugin software packages at VIVE developer resource page (https://developer.vive.com/resources/knowledgebase/wave-sdk/).

*Wave SDK native binary:
Your use of Wave SDK native binary will be subject to SDK License Agreement between you and HTC. You can find the text of license agreement at https://developer.vive.com/resources/knowledgebase/sdk-license-agreement-english-version/. Please read it carefully before using this Work.

*Wave SDK Plugin Package:
Your use of plugin software package will be subject to the license terms contemplated herein. You can use, modify, share and/or reproduce the Wave SDK Plugin Package in accordance with the Agreement herein.

If you do not agree to the terms of the Agreement, please do not use this Work.

The Wave SDK native binary contains some third party software which separate license terms may apply. Please refer to the Accompanying License in a separate file named “Wave SDK Native Binary Accompanying OSS License”.

================================================================================

License Terms for Wave SDK Plugin Package

The works ("Work") herein refer to the software developed or owned by
HTC Corporation ("HTC") under the terms of the license. Unless otherwise
provided herein or in the folder you download or use, the information in
this Work is the exclusive property of HTC. HTC grants the
legal user the right to use the Work within the scope of the legitimate
development of software. No further right is granted under this license,
including but not limited to, distribution, reproduction and
modification. Any other usage of the Works shall be subject to the
written consent of HTC.

The use of the Work is permitted provided that the following conditions
are met:
* The Work is used in a source code form must retain the above
copyright notice, this list of conditions and the following
disclaimer.
* The Work is used in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distributions.
* Neither HTC nor the names of its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.

THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER
DEALINGS IN THE WORK.


7 changes: 7 additions & 0 deletions com.htc.upm.wave.essence/LICENSE.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions com.htc.upm.wave.essence/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions com.htc.upm.wave.essence/Runtime/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ead3179

Please sign in to comment.