Vixen
dd8b0a81
csharp
public record class GraphSurfaceNumber

One number a graph-authored surface asks its material for.

Read the guide page for this →

Remarks

⚠ A kind per width rather than one record with a width field, which is the same decision IMaterialParameter's own remarks record and for the same reason: a single value type carrying a Vector4 and a lane count would put three dead floats in every line of every graph material, and would give an inspector one editor to draw for two different things. The shader graph declares exactly two widths today — Input/Float Property and Input/Colour Property — so there are exactly two of these.

Fields and properties (2)

  • public string Name
  • public float Value

Methods (2)

  • public GraphSurfaceNumber(string Name, float Value)

    One number a graph-authored surface asks its material for.

  • public GraphSurfaceNumber()

    For the binder, which builds a value and then fills it.

Used by (9)

  • GraphSurfaceFeatureVixen.Rendering
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Materials_GraphSurfaceFeatureSerializerVixen.Rendering
  • Vixen_Rendering_Materials_GraphSurfaceNumberSerializerVixen.Rendering
  • GraphMaterialTestsVixen.Editor.ShaderGraph.Tests
  • MaterialDocumentVixen.Editor.AssetEditors
  • MaterialGraphPropertyTestsVixen.Editor.AssetEditors.Tests
  • MaterialViewVixen.Editor.AssetEditors
  • ShaderGraphMaterialVixen.Editor.ShaderGraph