您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
18 行
533 B
18 行
533 B
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
[Serializable]
|
|
abstract class MatrixShaderProperty : AbstractShaderProperty<Matrix4x4>
|
|
{
|
|
public override bool isBatchable => true;
|
|
public override bool isExposable => false;
|
|
public override bool isRenamable => true;
|
|
|
|
public override string GetPropertyDeclarationString(string delimiter = ";")
|
|
{
|
|
return $"{concretePrecision.ToShaderString()}4x4 {referenceName}{delimiter}";
|
|
}
|
|
}
|
|
}
|