Material

class Material(raw: ERROR CLASS: Symbol not found for CPointer<ERROR CLASS: Symbol not found for raylib.internal.Material>)

Represents a raylib material.

Materials define the appearance of 3D models by combining shaders and textures.

Constructors

Link copied to clipboard
constructor(raw: ERROR CLASS: Symbol not found for CPointer<ERROR CLASS: Symbol not found for raylib.internal.Material>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the material is valid.

Link copied to clipboard

The maps of the material.

Link copied to clipboard

The shader associated with the material.

Functions

Link copied to clipboard
fun setMapColor(index: Int, color: Color)

Sets the color of a material map directly. This matches the C pattern: material.maps[index].color = RED

fun setMapColor(mapType: MaterialMap.Texture, color: Color)

Sets the color of a material map directly. This matches the C pattern: material.maps[mapType].color = RED

Link copied to clipboard
fun setTextureMap(index: Int, texture: Texture2D): ERROR CLASS: Unresolved name: memScoped

Sets a texture map for the material.