
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
32 lines
798 B
C#
32 lines
798 B
C#
using System;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
[GenerationAPI]
|
|
internal enum InstancingOptions
|
|
{
|
|
RenderingLayer,
|
|
NoLightProbe,
|
|
NoLodFade,
|
|
}
|
|
|
|
[GenerationAPI]
|
|
internal static class InstancingOptionsExtensions
|
|
{
|
|
public static string ToShaderString(this InstancingOptions options)
|
|
{
|
|
switch (options)
|
|
{
|
|
case InstancingOptions.RenderingLayer:
|
|
return "renderinglayer";
|
|
case InstancingOptions.NoLightProbe:
|
|
return "nolightprobe";
|
|
case InstancingOptions.NoLodFade:
|
|
return "nolodfade";
|
|
default:
|
|
throw new ArgumentOutOfRangeException();
|
|
}
|
|
}
|
|
}
|
|
}
|