X-Git-Url: https://gitweb.ps.run/subsurface_scattering/blobdiff_plain/0a5e8172a6ee0e79c81eec21a9966bea9385b249..aa6a05d9bd09fae792a5beccf01c07ef404e3975:/src/main2.cpp diff --git a/src/main2.cpp b/src/main2.cpp index 5d717e6..e57639a 100644 --- a/src/main2.cpp +++ b/src/main2.cpp @@ -412,10 +412,10 @@ int main() { bool freecam = false; int renderState = 1; float color[3] = { 0.7f, 0.4f, 0.4f }; - glm::vec3 lightPos = glm::vec3(0.0f, 0.0f, 0.25f); + glm::vec3 lightPos = glm::vec3(0.0f, 0.0f, 2.5f); float transmittanceScale = 0.005f; - float powBase = 2.718; - float powFactor = 1; + float powBase = 2; + float powFactor = 1.5; } DefaultOptions; auto options = DefaultOptions; @@ -579,11 +579,8 @@ int main() { ImGui::Begin("Options"); ImGui::Checkbox("Wireframe", &options.wireframe); ImGui::Checkbox("Free Cam", &options.freecam); - ImGui::InputInt("Render State", &options.renderState); ImGui::DragFloat3("Color", options.color, 0.01, 0, 1); ImGui::DragFloat("Transmittance Scale", &options.transmittanceScale, 0.0001f, 0, 0.3); - ImGui::DragFloat("Pow Base", &options.powBase, 0.01f, 0, 4); - ImGui::DragFloat("Pow Factor", &options.powFactor, 0.01f, 0, 3); ImGui::DragFloat3("Light Pos", glm::value_ptr(options.lightPos), 0.01, -5, 5); if (options.freecam) { ImGui::LabelText("Position", "%f %f %f", freeCam.pos.x, freeCam.pos.y, freeCam.pos.z);