TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ OnRender()

void Float3Node::OnRender ( )
overridevirtual

Implements SNENode.

Definition at line 34 of file Float3Node.cpp.

35{
36 DrawHeader("Float 3");
37 ImGui::PushItemWidth(100);
38
39 if(ImGui::DragFloat("X", &x, 0.01f))
40 {
41 sharedData->d0 = x;
42 }
43
44 ImGui::SameLine();
45 outputPins[0]->Render();
46
47 if(ImGui::DragFloat("Y", &y, 0.01f))
48 {
49 sharedData->d1 = y;
50 }
51
52 if(ImGui::DragFloat("Z", &z, 0.01f))
53 {
54 sharedData->d2 = z;
55 }
56
57 ImGui::PopItemWidth();
58}