Przeglądaj źródła

correct several more typographical errors

Stephen Gold 4 lat temu
rodzic
commit
f52cf04f2c

+ 2 - 2
jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -437,7 +437,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
 //        if (im.getFormatVersion() == 0) {
             modelName = ic.readString("modelName", "");
 //        }
-        //FIXME always the same issue, because of the clonning of assets, this won't work
+        //FIXME always the same issue, because of the cloning of assets, this won't work
         //we have to somehow store userdata in the spatial and then recurse the 
         //scene sub scenegraph to find the correct instance of the model
         //This brings a reflaxion about the cinematic being an appstate, 

+ 5 - 5
jme3-core/src/main/java/com/jme3/math/ColorRGBA.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -744,10 +744,10 @@ public final class ColorRGBA implements Savable, Cloneable, java.io.Serializable
      */
     public ColorRGBA getAsSrgb() {
         ColorRGBA srgb = new ColorRGBA();
-        float invGama = 1f / GAMMA;
-        srgb.r = (float) Math.pow(r, invGama);
-        srgb.g = (float) Math.pow(g, invGama);
-        srgb.b = (float) Math.pow(b, invGama);
+        float invGamma = 1f / GAMMA;
+        srgb.r = (float) Math.pow(r, invGamma);
+        srgb.g = (float) Math.pow(g, invGamma);
+        srgb.b = (float) Math.pow(b, invGamma);
         srgb.a = a;
         return srgb;
     }

+ 2 - 2
jme3-effects/src/main/java/com/jme3/post/filters/GammaCorrectionFilter.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -41,7 +41,7 @@ import com.jme3.renderer.ViewPort;
  *
  * @author Phate666
  * @version 1.0 initial version
- * @deprecated use the Gama Correction setting instead.
+ * @deprecated use the Gamma Correction setting instead.
  */
 @Deprecated
 public class GammaCorrectionFilter extends Filter {

+ 1 - 1
jme3-examples/src/main/java/jme3test/input/TestCameraNode.java

@@ -90,7 +90,7 @@ public class TestCameraNode extends SimpleApplication implements AnalogListener,
     camNode.setControlDir(ControlDirection.SpatialToCamera);
     //attaching the camNode to the teaNode
     teaNode.attachChild(camNode);
-    //setting the local translation of the cam node to move it away from the teanNode a bit
+    //setting the local translation of the cam node to move it away from the tea Node a bit
     camNode.setLocalTranslation(new Vector3f(-10, 0, 0));
     //setting the camNode to look at the teaNode
     camNode.lookAt(teaNode.getLocalTranslation(), Vector3f.UNIT_Y);