TrianglePrimitive¶
Qualified name: algan.rendering.primitives.triangle\_primitive.TrianglePrimitive
- class TrianglePrimitive(corners=None, colors=Color([0.3451, 0.7686, 0.8667, 0.0000, 1.0000]), opacity=1, normals=None, perimeter_points=None, reverse_perimeter=False, triangle_collection=None, glow=0, shader=None, uvs=None, texture_map=None, material_texture_map=None, material_texture_flags=0, normal_texture_map=None, **shader_kwargs)[source]¶
Bases:
RenderPrimitiveMethods
Key used by the scene batcher: primitives with equal keys are merged into one batched primitive of this class.
Attributes
Parameter values of
SETTINGS.style.default_material, carried by a primitive built through the no-material fallback so the process-wide default material's look reaches the packed material block and the vertex bake, not just its shader.frame_dependent_source_attrs- default_material_params: dict = {}¶
Parameter values of
SETTINGS.style.default_material, carried by a primitive built through the no-material fallback so the process-wide default material’s look reaches the packed material block and the vertex bake, not just its shader. Empty when the mob set its own material or shader (its own values are already registered) – every consumer treats an empty mapping as an exact no-op.