material.Flat

material.Flat(outline=True, threshold=0.8, thickness=0.15, *, 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. True
threshold float Threshold for the edge detection that forms the outline. 0.8
thickness float Thickness of the outline. 0.15
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.