Added new screenshots to show off imgui. As well as a quick delve into the blinn function to add the inverse square law

This commit is contained in:
MitchellHansen
2017-03-18 20:52:24 -07:00
parent 6a3eaa04f7
commit ec65ef7741
4 changed files with 24 additions and 9 deletions

View File

@@ -179,6 +179,7 @@ int main() {
fps_counter fps;
float light_color[4] = { 0, 0, 0, 0 };
float light_pos[4] = { 100, 100, 30 };
while (window.isOpen()) {
@@ -263,6 +264,10 @@ int main() {
handle->set_rgbi(light);
}
if (ImGui::SliderFloat4("Position", light_pos, 0, MAP_X)) {
sf::Vector3f light(light_pos[0], light_pos[1], light_pos[2]);
handle->set_position(light);
}
ImGui::End();