ShadeModelAttrib
from panda3d.core import ShadeModelAttrib
- class ShadeModelAttrib
Bases:
Bases:
RenderAttrib
Specifies whether flat shading (per-polygon) or smooth shading (per-vertex) is in effect.
Inheritance diagram
- static getClassType() TypeHandle
- getMode() Mode
Returns the shade mode.
- static make(mode: Mode) RenderAttrib
Constructs a new
ShadeModelAttrib
object that specifies whether to draw polygons with flat shading or with per-vertex (smooth) shading.
- static makeDefault() RenderAttrib
Returns a
RenderAttrib
that corresponds to whatever the standard default properties for render attributes of this type ought to be.
- property mode Mode
Returns the shade mode.