浏览代码

Renaming

/main
Thomas 7 年前
当前提交
a3fc85f5
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 10
      ScriptableRenderPipeline/Core/CoreRP/RTHandle.cs

10
ScriptableRenderPipeline/Core/CoreRP/RTHandle.cs


var rt = rth.rt;
rt.Release();
Vector2Int scale;
Vector2Int scaledSize;
scale = rth.scaleFunc(maxSize);
scaledSize = rth.scaleFunc(maxSize);
scale = new Vector2Int(
scaledSize = new Vector2Int(
rt.width = Mathf.Max(scale.x, 1);
rt.height = Mathf.Max(scale.y, 1);
rt.width = Mathf.Max(scaledSize.x, 1);
rt.height = Mathf.Max(scaledSize.y, 1);
rt.Create();
}
}

正在加载...
取消
保存