47{
48 DrawHeader("Pixelate Node");
49 inputPins[0]->Render();
50 ImGui::Text("In");
51 inputPins[1]->Render();
52
53 if (inputPins[1]->IsLinked())
54 {
55 ImGui::Text("Pixel Size");
56 }
57
58 else
59 {
60 ImGui::PushItemWidth(100);
61 ImGui::DragFloat(("##" + std::to_string(inputPins[0]->id)).c_str(), &pixelSize, 0.01f, 0.001f, 1);
62 ImGui::PopItemWidth();
63 }
64
65 ImGui::SameLine();
66 ImGui::Text("Out");
67 outputPins[0]->Render();
68 ImGui::Text("Pixelates the input");
69}