更新
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace GraphicsCat
|
||||
{
|
||||
public static class MaterialExtensions
|
||||
{
|
||||
public static void SetKeyword(this Material mat, string keyword, bool val)
|
||||
{
|
||||
if (val == true)
|
||||
mat.EnableKeyword(keyword);
|
||||
else
|
||||
mat.DisableKeyword(keyword);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11075b9d86ea39247b3a533b35cb3f82
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 328765
|
||||
packageName: LitPlus - URP Enhanced Lit Shader
|
||||
packageVersion: 1.0.1
|
||||
assetPath: Assets/GraphicsCat/Modules/Common/Extensions/MaterialExtensions.cs
|
||||
uploadId: 820558
|
||||
Reference in New Issue
Block a user