material.Flat

material.Flat(outline=None, threshold=None, thickness=None, *, name=None)

Flat cartoon-like shading with an optional dark outline.

Parameters

Name Type Description Default
outline bool Whether to render the dark outline around the object. Defaults to the recipe’s value. None
threshold float Threshold for the edge detection that forms the outline. Defaults to the recipe’s value. None
thickness float Thickness of the outline. Defaults to the recipe’s value. None
name str Name for the created material datablock. Defaults to "Flat". None

Attributes

Name Description
material The underlying Blender material datablock.
outline Whether the dark outline is rendered.
tree The nodebpy tree builder for the material’s node tree.