TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ ShowSettings()

void SeaManager::ShowSettings ( bool *  pOpen)

Definition at line 145 of file SeaManager.cpp.

146{
147 if (*pOpen)
148 {
149 ImGui::Begin("Sea Setings", pOpen);
150 ImGui::Checkbox("Sea Enabled", &enabled);
151 ImGui::DragFloat("Sea Level", &level, 0.1f);
152 ImGui::Text("Sea Color");
153 ImGui::ColorEdit3("##seaColor", color);
154 ImGui::DragFloat("Alpha", &alpha, 0.01f, 0, 1);
155 ImGui::DragFloat("Scale", &scale, 0.1f);
156 ImGui::DragFloat("Reflectvity", &reflectivity, 0.01f, 0, 1);
157 ImGui::DragFloat("Distortion Strength", &distrotionStrength, 0.001f, 0, 1);
158 ImGui::DragFloat("Distortion Scale", &distrotionScale, 0.001f, 0, 1);
159 ImGui::DragFloat("Wave Speed", &waveSpeed, 0.01f, 0, 1);
160 ImGui::Text("DuDv Map");
161 ImGui::SameLine();
162
163 if (ImGui::ImageButton((ImTextureID)dudvMap->GetRendererID(), ImVec2(50, 50)))
164 {
165 LoadTexture(dudvMap);
166 }
167
168 ImGui::Text("Normal Map");
169 ImGui::SameLine();
170
171 if (ImGui::ImageButton((ImTextureID)normalMap->GetRendererID(), ImVec2(50, 50)))
172 {
173 LoadTexture(normalMap);
174 }
175
176 ImGui::End();
177 }
178}