Class FilterUtility
Provides methods for utility purposes.
Inherited Members
Namespace: UnityEditor.TerrainTools
Assembly: Unity.TerrainTools.Editor.dll
Syntax
public static class FilterUtility
Fields
filterPreviewKeyword
The shader keyword for enabling the filter preview.
Declaration
public static readonly string filterPreviewKeyword
Field Value
Type | Description |
---|---|
string |
Properties
blendModesMaterial
Gets the Material for blend mode passes.
Declaration
public static Material blendModesMaterial { get; }
Property Value
Type | Description |
---|---|
Material |
builtinMaterial
Gets the Material used for built-in Filters like Add and Multiply.
Declaration
public static Material builtinMaterial { get; }
Property Value
Type | Description |
---|---|
Material |
defaultFormat
Gets the default GraphicsFormat used to evaluate Filters and FilterStacks.
Declaration
public static GraphicsFormat defaultFormat { get; }
Property Value
Type | Description |
---|---|
GraphicsFormat |
Remarks
Returns GraphicsFormat.R16_SFloat when the GraphicsFormat is supported by the active Graphics API. If it is not supported, for example on Vulkan, OpenGLES3, and OpenGLES2, GraphicsFormat.R8G8_UNorm is returned instead.
Methods
CreateInstance(Type)
Creates an instance of the provided Filter type
Declaration
public static Filter CreateInstance(Type t)
Parameters
Type | Name | Description |
---|---|---|
Type | t | The type of Filter to create |
Returns
Type | Description |
---|---|
Filter | Returns the Filter instance. |
CreateInstance<T>()
Creates an instance of generic type T where T inherits from Filter
Declaration
public static T CreateInstance<T>() where T : Filter
Returns
Type | Description |
---|---|
T | Returns the Filter instance. |
Type Parameters
Name | Description |
---|---|
T | The type of Filter to create |