Table of Contents

Class GizmoUniformColorMaterial

Namespace
Stride.CommunityToolkit.Rendering.Gizmos
Assembly
Stride.CommunityToolkit.dll

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

device GraphicsDevice

The GraphicsDevice used to create the material.

color Color

The Color to apply to the material.

Returns

Material

A new Material with the specified uniform diffuse color.

Remarks

If the color contains transparency (alpha < 255), transparency is enabled for the material.