浏览代码

Fix variables names from coordinate space

/main
Matt Dean 7 年前
当前提交
c47de91f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Interfaces/NeededCoordinateSpace.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Interfaces/NeededCoordinateSpace.cs


public static string ToVariableName(this CoordinateSpace space, InterpolatorType type)
{
var index = (int)space * s_SpaceCount + (int)type;
var index = (int)space + (int)type * s_SpaceCount;
if (string.IsNullOrEmpty(s_VariableNames[index]))
s_VariableNames[index] = string.Format("{0}Space{1}", space, type);
return s_VariableNames[index];

正在加载...
取消
保存