4ff395c862
Finished the NPC Creator tool
26 lines
1014 B
C#
26 lines
1014 B
C#
using System.Collections.Generic;
|
|
|
|
namespace UnityEditor.TerrainTools
|
|
{
|
|
/// <summary>
|
|
/// A NoiseType implementation for Billow noise
|
|
/// </summary>
|
|
[System.Serializable]
|
|
internal class BillowNoise : NoiseType<BillowNoise>
|
|
{
|
|
private static NoiseTypeDescriptor desc = new NoiseTypeDescriptor()
|
|
{
|
|
name = "Billow",
|
|
outputDir = "Packages/com.unity.terrain-tools/Shaders/NoiseLib",
|
|
sourcePath = "Packages/com.unity.terrain-tools/Shaders/NoiseLib/Implementation/BillowImpl.hlsl",
|
|
supportedDimensions = NoiseDimensionFlags._1D | NoiseDimensionFlags._2D | NoiseDimensionFlags._3D,
|
|
inputStructDefinition = null
|
|
// inputStructDefinition = new List<HlslInput>()
|
|
// {
|
|
// new HlslInput() { name = "scale", valueType = HlslValueType.Float4, float4Value = new HlslFloat4(1,1,1,1) }
|
|
// }
|
|
};
|
|
|
|
public override NoiseTypeDescriptor GetDescription() => desc;
|
|
}
|
|
} |