浏览代码

Added a material upgrader to convert VikingVillage materials to LD Pipeline ones.

/vr_sandbox
Felipe Lira 8 年前
当前提交
89e8323a
共有 3 个文件被更改,包括 36 次插入0 次删除
  1. 24
      Assets/LowEndRenderLoop/Editor/StandardSpecularToLDMaterialUpgrader.cs
  2. 12
      Assets/LowEndRenderLoop/Editor/StandardSpecularToLDMaterialUpgrader.cs.meta

24
Assets/LowEndRenderLoop/Editor/StandardSpecularToLDMaterialUpgrader.cs


using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Experimental.Rendering;
using UnityEngine;
public class StandardSpecularToLDMaterialUpgrader : MaterialUpgrader
{
[MenuItem("LDRenderPipeline/Upgrade Materials")]
private static void UpgradeMaterialsToLD()
{
List<MaterialUpgrader> upgraders = new List<MaterialUpgrader>();
upgraders.Add(new StandardSpecularToLDMaterialUpgrader("Standard (Specular setup)"));
upgraders.Add(new StandardSpecularToLDMaterialUpgrader("Standard"));
upgraders.Add(new StandardSpecularToLDMaterialUpgrader("TerrainSurface"));
MaterialUpgrader.UpgradeProjectFolder(upgraders, "Upgrade to LD Materials");
}
StandardSpecularToLDMaterialUpgrader(string oldShaderName)
{
RenameShader(oldShaderName, "RenderLoop/LowEnd");
}
}

12
Assets/LowEndRenderLoop/Editor/StandardSpecularToLDMaterialUpgrader.cs.meta


fileFormatVersion: 2
guid: aec5479bdc442cb4d96b1de3f5e5c818
timeCreated: 1484641774
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存