Material

moderngl_window.scene.Material[source]

Generic material

Methods

Material.__init__(name)[source]

Initialize material.

Parameters

name (str) – Name of the material

Attributes

Material.name

Name of the material

Type

str

Material.color

RGBA color

Type

Tuple[float, float, float, float]

Material.mat_texture

instance

Type

MaterialTexture

Material.double_sided

Material surface is double sided?

Type

bool