You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.9 KiB
47 lines
1.9 KiB
using System.Collections.Generic;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Rendering.HighDefinition;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition
|
|
{
|
|
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
|
|
class StandardsToHDLitMaterialUpgraderProvider : IMaterialUpgradersProvider
|
|
{
|
|
public IEnumerable<MaterialUpgrader> GetUpgraders()
|
|
{
|
|
yield return new StandardsToHDLitMaterialUpgrader("Standard", "HDRP/Lit");
|
|
yield return new StandardsToHDLitMaterialUpgrader("Standard (Specular setup)", "HDRP/Lit");
|
|
yield return new StandardsToHDLitMaterialUpgrader("Standard (Roughness setup)", "HDRP/Lit");
|
|
}
|
|
}
|
|
|
|
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
|
|
class UnlitsToHDUnlitUpgraderProvider : IMaterialUpgradersProvider
|
|
{
|
|
public IEnumerable<MaterialUpgrader> GetUpgraders()
|
|
{
|
|
yield return new UnlitsToHDUnlitUpgrader("Unlit/Color", "HDRP/Unlit");
|
|
yield return new UnlitsToHDUnlitUpgrader("Unlit/Texture", "HDRP/Unlit");
|
|
yield return new UnlitsToHDUnlitUpgrader("Unlit/Transparent", "HDRP/Unlit");
|
|
yield return new UnlitsToHDUnlitUpgrader("Unlit/Transparent Cutout", "HDRP/Unlit");
|
|
}
|
|
}
|
|
|
|
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
|
|
class TerrianUpgraderProvider : IMaterialUpgradersProvider
|
|
{
|
|
public IEnumerable<MaterialUpgrader> GetUpgraders()
|
|
{
|
|
yield return new StandardsTerrainToHDTerrainLitUpgrader("Nature/Terrain/Standard", "HDRP/TerrainLit");
|
|
}
|
|
}
|
|
|
|
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
|
|
class SpeedTreeUpgraderProvider : IMaterialUpgradersProvider
|
|
{
|
|
public IEnumerable<MaterialUpgrader> GetUpgraders()
|
|
{
|
|
yield return new HDSpeedTree8MaterialUpgrader("Nature/SpeedTree8", "HDRP/Nature/SpeedTree8");
|
|
}
|
|
}
|
|
}
|