188{
189 DrawHeader("PBR Material");
190 inputPins[0]->Render();
191 ImGui::SameLine();
192 ImGui::Text("Albedo");
193 ImGui::SameLine();
194 outputPins[0]->Render();
195 inputPins[1]->Render();
196 ImGui::SameLine();
197 ImGui::Text("Normal");
198 inputPins[2]->Render();
199 ImGui::SameLine();
200 ImGui::Text("Metallic");
201 inputPins[3]->Render();
202 ImGui::SameLine();
203 ImGui::Text("Roughness");
204 inputPins[4]->Render();
205 ImGui::SameLine();
206 ImGui::Text("AO");
207 inputPins[5]->Render();
208 ImGui::SameLine();
209 ImGui::Text("ARM");
210
211 if (ImGui::Checkbox("Gamma Correction", &gammaCorrection))
212 {
213 sharedData->d0 = gammaCorrection ? 1.0f : 0.0f;
214 }
215
216 if (ImGui::Checkbox("HDR Tonemapping", &hdrTonemapping))
217 {
218 sharedData->d1 = hdrTonemapping ? 1.0f : 0.0f;
219 }
220}