@@ -25,7 +25,7 @@ public class LightControls implements IGuiInstance {
2525 private float [] pointLightY ;
2626 private float [] pointLightZ ;
2727 private float [] spotLightColor ;
28- private float [] spotLightCuttoff ;
28+ private float [] spotLightCutoff ;
2929 private float [] spotLightIntensity ;
3030 private float [] spotLightX ;
3131 private float [] spotLightY ;
@@ -57,7 +57,7 @@ public LightControls(Scene scene) {
5757 spotLightY = new float []{pos .y };
5858 spotLightZ = new float []{pos .z };
5959 spotLightIntensity = new float []{pointLight .getIntensity ()};
60- spotLightCuttoff = new float []{spotLight .getCutOffAngle ()};
60+ spotLightCutoff = new float []{spotLight .getCutOffAngle ()};
6161 Vector3f coneDir = spotLight .getConeDirection ();
6262 dirConeX = new float []{coneDir .x };
6363 dirConeY = new float []{coneDir .y };
@@ -100,7 +100,7 @@ public void drawGui() {
100100 ImGui .colorEdit3 ("Spot Light color" , spotLightColor );
101101 ImGui .sliderFloat ("Spot Light Intensity" , spotLightIntensity , 0.0f , 1.0f , "%.2f" );
102102 ImGui .separator ();
103- ImGui .sliderFloat ("Spot Light cutoff" , spotLightCuttoff , 0.0f , 360.0f , "%2.f" );
103+ ImGui .sliderFloat ("Spot Light cutoff" , spotLightCutoff , 0.0f , 360.0f , "%2.f" );
104104 ImGui .sliderFloat ("Dir cone - x" , dirConeX , -1.0f , 1.0f , "%.2f" );
105105 ImGui .sliderFloat ("Dir cone - y" , dirConeY , -1.0f , 1.0f , "%.2f" );
106106 ImGui .sliderFloat ("Dir cone - z" , dirConeZ , -1.0f , 1.0f , "%.2f" );
@@ -145,7 +145,7 @@ public boolean handleGuiInput(Scene scene, Window window) {
145145 pointLight .setPosition (spotLightX [0 ], spotLightY [0 ], spotLightZ [0 ]);
146146 pointLight .setColor (spotLightColor [0 ], spotLightColor [1 ], spotLightColor [2 ]);
147147 pointLight .setIntensity (spotLightIntensity [0 ]);
148- spotLight .setCutOffAngle (spotLightColor [0 ]);
148+ spotLight .setCutOffAngle (spotLightCutoff [0 ]);
149149 spotLight .setConeDirection (dirConeX [0 ], dirConeY [0 ], dirConeZ [0 ]);
150150
151151 DirLight dirLight = sceneLights .getDirLight ();
0 commit comments