mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-16 19:14:15 -04:00
add default values to materials
This commit is contained in:
@ -566,6 +566,14 @@ namespace AssetStudio
|
||||
}
|
||||
iMat = new ImportedMaterial();
|
||||
iMat.Name = mat.m_Name;
|
||||
//default values
|
||||
iMat.Diffuse = new Color(0.8f, 0.8f, 0.8f, 1);
|
||||
iMat.Ambient = new Color(0.2f, 0.2f, 0.2f, 1);
|
||||
iMat.Emissive = new Color(0, 0, 0, 1);
|
||||
iMat.Specular = new Color(0.2f, 0.2f, 0.2f, 1);
|
||||
iMat.Reflection = new Color(0, 0, 0, 1);
|
||||
iMat.Shininess = 20f;
|
||||
iMat.Transparency = 0f;
|
||||
foreach (var col in mat.m_SavedProperties.m_Colors)
|
||||
{
|
||||
switch (col.Key)
|
||||
|
Reference in New Issue
Block a user