Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ assert isValidNumber(fb) : "Invalid Matrix4f value " + uniform.getValue() + " fo
case FloatArray:
fb = uniform.getMultiData();
assert isValidNumber(fb) : "Invalid float array value "
+ Collections.singletonList((float[]) uniform.getValue()) + " for " + uniform.getBinding();
+ Arrays.toString((float[]) uniform.getValue()) + " for " + uniform.getBinding();
gl.glUniform1(loc, fb);
break;
case Vector2Array:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,17 @@ public void onAction(String name, boolean ongoing, float ignored) {
*/
if (name.equals("left")) {
angle += 0.1f; // radians
System.out.print("rotate floor and sky leftward ...");
System.out.println("rotate floor and sky leftward ...");
} else if (name.equals("right")) {
angle -= 0.1f; // radians
System.out.print("rotate floor and sky spatials rightward ...");
System.out.println("rotate floor and sky spatials rightward ...");
} else {
return;
}
/*
* Update the local rotations of both objects based on the angle.
*/
System.out.printf(" to %.1f radians left of start%n", angle);
System.out.printf(" to %.1f radians left of start%n\n", angle);
Quaternion rotation = new Quaternion();
rotation.fromAngleNormalAxis(angle, Vector3f.UNIT_Y);
floor.setLocalRotation(rotation);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ public int[] getPorts() {

@Override
public String toString() {
return "ChannelInfoMessage[" + id + ", " + Collections.singletonList(ports) + "]";
return "ChannelInfoMessage[" + id + ", " + Arrays.toString(ports) + "]";
}
}