File: shading.rst

package info (click to toggle)
blender-doc 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 253,604 kB
  • sloc: python: 13,030; javascript: 322; makefile: 113; sh: 107
file content (82 lines) | stat: -rw-r--r-- 2,790 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

*******
Shading
*******

.. _bpy.ops.object.shade_smooth:

Shade Smooth
============

.. reference::

   :Mode:      Object Mode
   :Menu:      :menuselection:`Object --> Shade Smooth`

Sets an entire object as smooth or faceted.
This forces the assignment of the "smoothing" attribute to each face in the mesh,
including when you add or delete geometry.

This operator will also remove any :doc:`Smooth By Angle Modifiers </modeling/modifiers/normals/smooth_by_angle>`.

Notice that the outline of the object is still strongly faceted.
Activating the smoothing features does not actually modify the object's geometry;
it changes the way the shading is calculated across the surfaces (normals will be interpolated),
giving the illusion of a smooth surface.

Using :ref:`bpy.ops.object.shade_flat` will revert the shading back (normals will be constant)
to that shown in the first image below.

.. list-table:: Example mesh flat (left) and smooth-shaded (right).
   `Sample blend-file <https://archive.blender.org/wiki/2015/index.php/File:25-manual-meshsmooth-example.blend>`__.

   * - .. figure:: /images/scene-layout_object_editing_shading_example-flat.png
          :width: 200px

     - .. figure:: /images/scene-layout_object_editing_shading_example-smooth.png
          :width: 200px

Keep Sharp Edges
   Do not clear sharp edges (which are redundant with objects shaded as flat or smooth).
   This option is useful to not destroy data in case you want to revert changes later.


.. _bpy.ops.object.shade_auto_smooth:

Shade Auto Smooth
=================

.. reference::

   :Mode:      Object Mode
   :Menu:      :menuselection:`Object --> Shade Auto Smooth`

Adds a :doc:`/modeling/modifiers/normals/smooth_by_angle` to automatically set
the sharpness of mesh edges based on the angle between the neighboring faces.
Note, the modifier will be :ref:`pinned <bpy.types.Modifier.use_pin_to_last>` to be the last modifier.

Auto Smooth
   If disabled, any :doc:`Smooth By Angle Modifiers </modeling/modifiers/normals/smooth_by_angle>` are removed.
Angle
   Maximum angle between face normals that will be considered as smooth.


.. _bpy.ops.object.shade_flat:

Shade Flat
==========

.. reference::

   :Mode:      Object Mode
   :Menu:      :menuselection:`Object --> Shade Flat`

Signify the object to render and display faces uniformly,
using the :ref:`Face Normal's <modeling-meshes-structure-normals>` direction.
This is usually desirable for objects with flat surfaces.

This operator will also remove any :doc:`Smooth By Angle Modifiers </modeling/modifiers/normals/smooth_by_angle>`

Keep Sharp Edges
   Do not clear sharp edges (which are redundant with objects shaded as flat or smooth).
   This option is useful to not destroy data in case you want to revert changes later.