Material

Inherits: Resource < Reference < Object

Inherited By: CanvasItemMaterial, ParticlesMaterial, ShaderMaterial, SpatialMaterial

Base abstracta Resource para colorear y sombrear la geometría.

Descripción

Material is a base Resource used for coloring and shading geometry. All materials inherit from it and almost all VisualInstance derived nodes carry a Material. A few flags and parameters are shared between all material types and are configured here.

Constantes

  • RENDER_PRIORITY_MAX = 127 --- Valor máximo del parámetro render_priority.

  • RENDER_PRIORITY_MIN = -128 --- Valor mínimo del parámetro render_priority.

Descripciones de Propiedades

Setter

set_next_pass(value)

Getter

get_next_pass()

Sets the Material to be used for the next pass. This renders the object again using a different material.

Note: This only applies to SpatialMaterials and ShaderMaterials with type "Spatial".


  • int render_priority

Default

0

Setter

set_render_priority(value)

Getter

get_render_priority()

Sets the render priority for transparent objects in 3D scenes. Higher priority objects will be sorted in front of lower priority objects.

Note: This only applies to sorting of transparent objects. This will not impact how transparent objects are sorted relative to opaque objects. This is because opaque objects are not sorted, while transparent objects are sorted from back to front (subject to priority).