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:
MaterialMaterial-capture shading. The matcap image is not sampled; a default view-facing approximation is used (tinted by the base color).
Methods
Map of
{shader_param_name: value}matching this material's shader signature.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_colorWhether the material's
colorshould 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)