MeshMatcapMaterial

Qualified name: algan.rendering.shaders.materials.MeshMatcapMaterial

class MeshMatcapMaterial(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: Material

Material-capture shading. The matcap image is not sampled; a default view-facing approximation is used (tinted by the base color).

Methods

get_shader_param_values

Map of {shader_param_name: value} matching this material's shader signature.

shader

MeshMatcapMaterial: the matcap image is not sampled (no UV pipeline); this approximates a default matcap with a view-facing diffuse term plus a rim highlight, tinted by the base color.

Attributes

applies_color

Whether the material's color should drive the mob's base color.

get_shader_param_values()[source]

Map of {shader_param_name: value} matching this material’s shader signature. Base materials expose no extra parameters.

static shader(memory, vertex_location, vertex_normal, albedo_color, camera_location, light_origin, light_color, light_intensity, ambient_light_intensity, flat_shading=0.0)

MeshMatcapMaterial: the matcap image is not sampled (no UV pipeline); this approximates a default matcap with a view-facing diffuse term plus a rim highlight, tinted by the base color.

Parameters:
  • light_intensity (float)

  • ambient_light_intensity (float)

  • flat_shading (float)