@@ -35,6 +35,7 @@ public class Cesium3DTilesetEditor : Editor
3535 //private SerializedProperty _useLodTransitions;
3636 //private SerializedProperty _lodTransitionLength;
3737 private SerializedProperty _generateSmoothNormals ;
38+ private SerializedProperty _generateTangents ;
3839
3940 private SerializedProperty _pointCloudShading ;
4041
@@ -84,6 +85,9 @@ private void OnEnable()
8485 // this.serializedObject.FindProperty("_lodTransitionLength");
8586 this . _generateSmoothNormals =
8687 this . serializedObject . FindProperty ( "_generateSmoothNormals" ) ;
88+ this . _generateTangents =
89+ this . serializedObject . FindProperty ( "_generateTangents" ) ;
90+
8791 this . _ignoreKhrMaterialsUnlit = this . serializedObject . FindProperty ( "_ignoreKhrMaterialsUnlit" ) ;
8892
8993 this . _pointCloudShading = this . serializedObject . FindProperty ( "_pointCloudShading" ) ;
@@ -428,6 +432,12 @@ private void DrawRenderProperties()
428432 ) ;
429433 EditorGUILayout . PropertyField ( this . _generateSmoothNormals , generateSmoothNormalsContent ) ;
430434
435+ var generateTangentsContent = new GUIContent (
436+ "Generate Tangents" ,
437+ "Whether to generate per-vertex tangets if they are missing in the source glTF."
438+ ) ;
439+ EditorGUILayout . PropertyField ( this . _generateTangents , generateTangentsContent ) ;
440+
431441 var ignoreKhrMaterialsUnlitContent = new GUIContent (
432442 "Ignore KHR_materials_unlit" ,
433443 "Whether to ignore the KHR_materials_unlit extension on the glTF tiles in " +
0 commit comments