浏览代码

Change preview render resolution to 200*200, as that is the size of the preview at a 100% zoom

/main
Peter Bay Bastian 7 年前
当前提交
9aa25c1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/PreviewManager.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/PreviewManager.cs


var previewData = new PreviewRenderData
{
shaderData = shaderData,
renderTexture = new RenderTexture(256, 256, 16, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default) { hideFlags = HideFlags.HideAndDontSave }
renderTexture = new RenderTexture(200, 200, 16, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default) { hideFlags = HideFlags.HideAndDontSave }
};
if (m_RenderDatas.ContainsKey(node.guid))
{

正在加载...
取消
保存