API Reference · Materials and textures
AppearanceParameter
public sealed class AppearanceParameterOne thing about a model a caller may adjust, with enough about it to build a control without knowing what the model is.
The two kinds are not the same shape and the type does not pretend they are: a AppearanceKind.Shape parameter has a range and a AppearanceParameter.Value, and a AppearanceKind.Color parameter has a AppearanceParameter.Material. Both are here so that one walk over GltfModel.Appearance produces the whole panel — which is the point, and is what stops a demo scene from hardcoding the names a particular file happens to use.
Properties
| Member | Description |
|---|---|
| What the file authored. Shape parameters only. |
| The base colour the file authored, for a |
| Which kind of parameter this is, and therefore which members mean anything. |
| The material behind a |
| Highest useful value, always 1. Shape parameters only. |
| Lowest useful value. −1 for a detected pair, 0 otherwise. Shape parameters only. |
| What to label the control. A detected pair reads as "eye size"; anything else keeps the file's own name. |
| The current value of a Not clamped to |
Methods
| Member | Description |
|---|---|
| Puts this parameter back to what the file said. |