You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1206,7 +1206,7 @@ public class Main implements IAppLogic {
1206
1206
We are defining the coordinates of a cube, and setting some random texture coordinates to see some changes in the color. After that, we need to create also a new `Entity` instance in order to render the cube. We want the cube to spin, so we use the `update` method, that will be invoked periodically to update that angle:
Copy file name to clipboardExpand all lines: bookcontents/chapter-09/chapter-09.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -763,7 +763,7 @@ public class Render {
763
763
The last step is to change the `Main` class to use the camera and a new model. In this case we will be using the famous Sponzamodel (weareusingthemodelsfrom [GitHub - KhronosGroup/glTF-Sample-Models: glTFSampleModels](https://github.com/KhronosGroup/glTF-Sample-Models)). We have modified the `input` to update the camera position with the mouse movement when pressing the right button:
764
764
765
765
```java
766
-
publicclassMainimplementsIAppLogic {
766
+
publicclassMainimplementsIGameLogic {
767
767
...
768
768
privatestaticfinalfloatMOUSE_SENSITIVITY = 0.1f;
769
769
privatestaticfinalfloatMOVEMENT_SPEED = 0.01f;
@@ -806,7 +806,7 @@ public class Main implements IAppLogic {
806
806
The `init` method has also been modified to load the new model. The `update` method is empty now:
0 commit comments