Update VA_ModelBaker.cs

Removed LitGUI debug logs.
Updated VA_ModelBaker material creation and setting update.
Added mesh finalize function to optimize and upload the mesh data.
This commit is contained in:
max
2021-02-17 00:49:03 +01:00
parent a8ffefa9d6
commit 3c14c98cf9
4 changed files with 54 additions and 28 deletions

View File

@ -116,12 +116,10 @@ namespace TAO.VertexAnimation.Editor
if (EditorGUI.EndChangeCheck())
{
Debug.Log(value);
SetKeyword("USE_INTERPOLATION_ON", value);
}
}
{
bool value = mat.IsKeywordEnabled("USE_NORMALA_ON");
MaterialProperty useNormalA = FindProperty("USE_NORMALA", properties);
@ -148,7 +146,6 @@ namespace TAO.VertexAnimation.Editor
if (EditorGUI.EndChangeCheck())
{
Debug.Log(value);
SetKeyword("VA_FLIP_UVS_ON", value);
}
}