update CCK to 3.10, fixing unity 2021 crash :)
This commit is contained in:
parent
48a978fa2a
commit
d11e0fb3a9
492 changed files with 2165204 additions and 437687 deletions
24
Assets/ABI.CCK/Scripts/Editor/ShaderProcessing/StripPostProcessingShaders.cs
Executable file
24
Assets/ABI.CCK/Scripts/Editor/ShaderProcessing/StripPostProcessingShaders.cs
Executable file
|
@ -0,0 +1,24 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEditor.Build;
|
||||
using UnityEditor.Rendering;
|
||||
|
||||
namespace ABI.CCK.Scripts.Editor.ShaderProcessing
|
||||
{
|
||||
public class StripPostProcessingShaders : IPreprocessShaders
|
||||
{
|
||||
public int callbackOrder => 0;
|
||||
|
||||
public void OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)
|
||||
{
|
||||
// TODO: Differentiate when building specifically for a CCK upload
|
||||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android)
|
||||
return;
|
||||
|
||||
// nuke post processing shaders
|
||||
if (shader.name.StartsWith("Hidden/PostProcessing"))
|
||||
data.Clear();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue