浏览代码

Fix preview position in 2D previews

Turn off pixel caching for nodes
/main
Tim Cooper 7 年前
当前提交
ec2df61b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphPreviewGenerator.cs
  2. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs

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


Mesh previewMesh = mesh == null ? s_Meshes[0] : mesh;
Vector3 previewPosition = -previewMesh.bounds.center;
Vector3 previewPosition = previewMesh.bounds.center;
Graphics.DrawMesh(
mode == PreviewMode.Preview3D ? previewMesh : quad,

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs


UpdateSize();
}
clippingOptions = ClippingOptions.ClipContents;
mainContainer.clippingOptions = ClippingOptions.ClipContents;
}
public AbstractMaterialNode node { get; private set; }

正在加载...
取消
保存