Add VRChat and GitHub packages to Unity project
This commit is contained in:
1 parent
0334a52b21
commit
85538aaccc
3297 files changed
+847877
No files matched your search
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Build;
|
||||
using UnityEditor.Rendering;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRC.SDKBase.Editor.ShaderStripping
|
||||
{
|
||||
public class StripPostProcessing : IPreprocessShaders
|
||||
{
|
||||
public int callbackOrder => 0;
|
||||
|
||||
public void OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)
|
||||
{
|
||||
if(EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string shaderName = shader.name;
|
||||
if(string.IsNullOrEmpty(shaderName) || !shaderName.Contains("PostProcessing"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
data.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user