9092858a58
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!
22 lines
1.0 KiB
C#
22 lines
1.0 KiB
C#
using UnityEngine;
|
|
using UnityEditor.ShaderGraph;
|
|
|
|
namespace UnityEditor.Rendering.Universal.ShaderGraph
|
|
{
|
|
static class UniversalBlockFields
|
|
{
|
|
[GenerateBlocks("Universal Render Pipeline")]
|
|
public struct SurfaceDescription
|
|
{
|
|
public static string name = "SurfaceDescription";
|
|
public static BlockFieldDescriptor SpriteMask = new BlockFieldDescriptor(SurfaceDescription.name, "SpriteMask", "Sprite Mask", "SURFACEDESCRIPTION_SPRITEMASK",
|
|
new ColorRGBAControl(new Color(1, 1, 1, 1)), ShaderStage.Fragment);
|
|
|
|
public static BlockFieldDescriptor NormalAlpha = new BlockFieldDescriptor(SurfaceDescription.name, "NormalAlpha", "Normal Alpha", "SURFACEDESCRIPTION_NORMALALPHA",
|
|
new FloatControl(1.0f), ShaderStage.Fragment);
|
|
public static BlockFieldDescriptor MAOSAlpha = new BlockFieldDescriptor(SurfaceDescription.name, "MAOSAlpha", "MAOS Alpha", "SURFACEDESCRIPTION_MAOSALPHA",
|
|
new FloatControl(1.0f), ShaderStage.Fragment);
|
|
}
|
|
}
|
|
}
|