Class GizmoUniformColorMaterial
A utility class for creating and updating materials with uniform color properties for gizmos.
public static class GizmoUniformColorMaterial
- Inheritance
-
GizmoUniformColorMaterial
Methods
Create(GraphicsDevice, Color)
Creates a new material with uniform diffuse color properties based on the specified color.
public static Material Create(GraphicsDevice device, Color color)
Parameters
deviceGraphicsDeviceThe GraphicsDevice used to create the material.
colorColorThe Color to apply to the material.
Returns
Remarks
If the color contains transparency (alpha < 255), transparency is enabled for the material.