UnlitMaterial¶
Qualified name: algan.rendering.shaders.materials.UnlitMaterial
- class UnlitMaterial(color=None, *, opacity=1.0, transparent=False, visible=True, side=Side.FRONT, flat_shading=False, vertex_colors=False, wireframe=False, tone_mapped=True, **texture_kwargs)[source]¶
Bases:
MaterialUnlit material: renders the flat base color, ignoring lights.
Methods
MeshBasicMaterial: unlit, returns the flat base color unchanged.
Attributes
applies_colorWhether the material's
colorshould drive the mob's base color.- static shader(memory, vertex_location, vertex_normal, albedo_color, camera_location, light_origin, light_color, light_intensity, ambient_light_intensity)¶
MeshBasicMaterial: unlit, returns the flat base color unchanged.
- Parameters:
light_intensity (float)
ambient_light_intensity (float)