ModelImporterNormalSmoothingSource
Source of smoothing information for calculation of normals in ModelImporter.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Enum
- Namespace: UnityEditor
- Assembly: UnityEditor
public enum ModelImporterNormalSmoothingSource
Remarks
Describes how Unity calculates whether edges have hard or smooth normals (from smoothing groups or the angle between faces). By default, Unity uses smoothing groups if they are present. If not, it uses angles.
Additional Resources: ModelImporter.normalSmoothingSource, Mesh.normals.
Fields
Value | Description |
|---|---|
| FromAngle | Use the angle between adjacent faces to determine if an edge is smooth or hard. |
| FromSmoothingGroups | Use smoothing groups to determine which edges are smooth and which are hard. |
| None | Do not create hard edges. |
| PreferSmoothingGroups | Use smoothing groups if they are present in the Model file, otherwise use angle (default). |