added KHR_materials_ior and KHR_materials_specular GLTF extension support

This commit is contained in:
Turanszki Janos
2021-05-29 17:41:30 +02:00
parent 1ee087f4b8
commit d26a31d3bb
15 changed files with 193 additions and 45 deletions
+6 -2
View File
@@ -11,7 +11,7 @@ using namespace wiScene;
void MaterialWindow::Create(EditorComponent* editor)
{
wiWindow::Create("Material Window");
SetSize(XMFLOAT2(720, 600));
SetSize(XMFLOAT2(720, 620));
float x = 670, y = 0;
float hei = 18;
@@ -220,7 +220,7 @@ void MaterialWindow::Create(EditorComponent* editor)
AddWidget(&roughnessSlider);
reflectanceSlider.Create(0, 1, 0.5f, 1000, "Reflectance: ");
reflectanceSlider.SetTooltip("Adjust the overall surface reflectivity.\nNote: this is not available in specular-glossiness workflow");
reflectanceSlider.SetTooltip("Adjust the surface [non-metal] reflectivity (also called specularFactor).\nNote: this is not available in specular-glossiness workflow");
reflectanceSlider.SetSize(XMFLOAT2(wid, hei));
reflectanceSlider.SetPos(XMFLOAT2(x, y += step));
reflectanceSlider.OnSlide([&](wiEventArgs args) {
@@ -581,6 +581,10 @@ void MaterialWindow::Create(EditorComponent* editor)
slots[i].label.SetText("ClearcoatNormMap:");
slots[i].button.SetTooltip("RGB: Normal");
break;
case MaterialComponent::SPECULARMAP:
slots[i].label.SetText("SpecularMap:");
slots[i].button.SetTooltip("RGB: Specular color, A: Specular intensity [non-metal]");
break;
default:
break;
}