listeners;
/**
- * Contruct a cinematic event (empty constructor).
+ * Construct a cinematic event (empty constructor).
*/
public AbstractCinematicEvent() {
}
/**
- * Contruct a cinematic event with the given initial duration.
+ * Construct a cinematic event with the given initial duration.
* @param initialDuration
*/
public AbstractCinematicEvent(float initialDuration) {
@@ -81,7 +81,7 @@ public abstract class AbstractCinematicEvent implements CinematicEvent {
}
/**
- * Contruct a cinematic event with the given loopMode.
+ * Construct a cinematic event with the given loopMode.
* @param loopMode
*/
public AbstractCinematicEvent(LoopMode loopMode) {
@@ -89,7 +89,7 @@ public abstract class AbstractCinematicEvent implements CinematicEvent {
}
/**
- * Contruct a cinematic event with the given loopMode and the given initialDuration.
+ * Construct a cinematic event with the given loopMode and the given initialDuration.
* @param initialDuration the duration of the event at speed = 1.
* @param loopMode the loop mode of the event.
*/
@@ -199,7 +199,7 @@ public abstract class AbstractCinematicEvent implements CinematicEvent {
public abstract void onPause();
/**
- * Returns the actual duration of the animtion (initialDuration/speed)
+ * Returns the actual duration of the animation (initialDuration/speed)
* @return
*/
public float getDuration() {
diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java b/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java
index 738b445b1..c77da581d 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java
@@ -77,7 +77,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
/**
* used for serialization don't call directly use one of the following
- * contructors
+ * constructors
*/
public AnimationEvent() {
}
@@ -99,7 +99,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
*
* @param model the model on which the animation will be played
* @param animationName the name of the animation to play
- * @param initialDuration the initialduration of the event
+ * @param initialDuration the initial duration of the event
*/
public AnimationEvent(Spatial model, String animationName, float initialDuration) {
super(initialDuration);
@@ -127,7 +127,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
*
* @param model the model on which the animation will be played
* @param animationName the name of the animation to play
- * @param initialDuration the initialduration of the event
+ * @param initialDuration the initial duration of the event
* @param loopMode the loopMode
* @see LoopMode
*/
@@ -142,7 +142,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
*
* @param model the model on which the animation will be played
* @param animationName the name of the animation to play
- * @param initialDuration the initialduration of the event
+ * @param initialDuration the initial duration of the event
* @param blendTime the time during the animation are gonna be blended
* @see AnimChannel#setAnim(java.lang.String, float)
*/
@@ -176,7 +176,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
*
* @param model the model on which the animation will be played
* @param animationName the name of the animation to play
- * @param initialDuration the initialduration of the event
+ * @param initialDuration the initial duration of the event
* @param loopMode the loopMode
* @see LoopMode
* @param blendTime the time during the animation are gonna be blended
@@ -245,7 +245,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
*
* @param model the model on which the animation will be played
* @param animationName the name of the animation to play
- * @param initialDuration the initialduration of the event
+ * @param initialDuration the initial duration of the event
* @param channelIndex the index of the channel default is 0. Events on the
* same channelIndex will use the same channel.
*/
@@ -261,7 +261,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
*
* @param model the model on which the animation will be played
* @param animationName the name of the animation to play
- * @param initialDuration the initialduration of the event
+ * @param initialDuration the initial duration of the event
* @param loopMode the loopMode
* @see LoopMode
* @param channelIndex the index of the channel default is 0. Events on the
diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/CinematicEvent.java b/jme3-core/src/main/java/com/jme3/cinematic/events/CinematicEvent.java
index ddac3f01f..d5355c9c1 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/events/CinematicEvent.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/events/CinematicEvent.java
@@ -136,7 +136,7 @@ public interface CinematicEvent extends Savable {
public void initEvent(Application app, Cinematic cinematic);
/**
- * When this method is invoked, the event should fast forward to the given time according tim 0 is the start of the event.
+ * When this method is invoked, the event should fast forward to the given time according time 0 is the start of the event.
* @param time the time to fast forward to
*/
public void setTime(float time);
diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java b/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java
index 60acb4c56..0a070e922 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java
@@ -90,8 +90,8 @@ public class MotionEvent extends AbstractCinematicEvent implements Control, JmeC
*/
Path,
/**
- * The target rotates with the direction of the path but with the additon of a rtotation
- * you need to use the setRotation mathod when using this Direction
+ * The target rotates with the direction of the path but with the addition of a rotation
+ * you need to use the setRotation method when using this Direction
*/
PathAndRotation,
/**
diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/SoundEvent.java b/jme3-core/src/main/java/com/jme3/cinematic/events/SoundEvent.java
index 1d52f221f..02c3ae754 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/events/SoundEvent.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/events/SoundEvent.java
@@ -54,7 +54,7 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
*/
public SoundEvent(String path) {
this.path = path;
@@ -62,7 +62,7 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
* @param stream true to make the audio data streamed
*/
public SoundEvent(String path, boolean stream) {
@@ -72,9 +72,9 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
* @param stream true to make the audio data streamed
- * @param initialDuration the nitial duration of the event
+ * @param initialDuration the initial duration of the event
*/
public SoundEvent(String path, boolean stream, float initialDuration) {
super(initialDuration);
@@ -84,7 +84,7 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
* @param stream true to make the audio data streamed
* @param loopMode the loopMode
* @see LoopMode
@@ -97,9 +97,9 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
* @param stream true to make the audio data streamed
- * @param initialDuration the nitial duration of the event
+ * @param initialDuration the initial duration of the event
* @param loopMode the loopMode
* @see LoopMode
*/
@@ -111,8 +111,8 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
- * @param initialDuration the nitial duration of the event
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
+ * @param initialDuration the initial duration of the event
*/
public SoundEvent(String path, float initialDuration) {
super(initialDuration);
@@ -121,7 +121,7 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
* @param loopMode the loopMode
* @see LoopMode
*/
@@ -132,8 +132,8 @@ public class SoundEvent extends AbstractCinematicEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
- * @param initialDuration the nitial duration of the event
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
+ * @param initialDuration the initial duration of the event
* @param loopMode the loopMode
* @see LoopMode
*/
@@ -192,7 +192,7 @@ public class SoundEvent extends AbstractCinematicEvent {
}
/**
- * Returns the underlying audion node of this sound track
+ * Returns the underlying audio node of this sound track
* @return
*/
public AudioNode getAudioNode() {
diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/SoundTrack.java b/jme3-core/src/main/java/com/jme3/cinematic/events/SoundTrack.java
index 2b245b757..33d34a571 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/events/SoundTrack.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/events/SoundTrack.java
@@ -43,7 +43,7 @@ public class SoundTrack extends SoundEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
*/
public SoundTrack(String path) {
super(path);
@@ -51,7 +51,7 @@ public class SoundTrack extends SoundEvent {
/**
* creates a sound track from the given resource path
- * @param path the path to an audi file (ie : "Sounds/mySound.wav")
+ * @param path the path to an audio file (ie : "Sounds/mySound.wav")
* @param stream true to make the audio data streamed
*/
public SoundTrack(String path, boolean stream) {
diff --git a/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java b/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java
index de2c6e8ae..2ffe850fe 100644
--- a/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java
+++ b/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java
@@ -267,8 +267,8 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
}
/**
- * Sets custom triggers for toggleing the rotation of the cam
- * deafult are
+ * Sets custom triggers for toggling the rotation of the cam
+ * default are
* new MouseButtonTrigger(MouseInput.BUTTON_LEFT) left mouse button
* new MouseButtonTrigger(MouseInput.BUTTON_RIGHT) right mouse button
* @param triggers
@@ -280,7 +280,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
}
/**
- * Sets custom triggers for zomming in the cam
+ * Sets custom triggers for zooming in the cam
* default is
* new MouseAxisTrigger(MouseInput.AXIS_WHEEL, true) mouse wheel up
* @param triggers
@@ -292,7 +292,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
}
/**
- * Sets custom triggers for zomming out the cam
+ * Sets custom triggers for zooming out the cam
* default is
* new MouseAxisTrigger(MouseInput.AXIS_WHEEL, false) mouse wheel down
* @param triggers
@@ -719,7 +719,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
}
/**
- * Sets the rotation sensitivity, the lower the value the slower the camera will rotates around the target when draging with the mouse
+ * Sets the rotation sensitivity, the lower the value the slower the camera will rotates around the target when dragging with the mouse
* default is 5, values over 5 should have no effect.
* If you want a significant slow down try values below 1.
* Only has an effect if smoothMotion is set to true
@@ -820,7 +820,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
}
/**
- * Sets the default distance at start of applicaiton
+ * Sets the default distance at start of application
* @param defaultDistance
*/
public void setDefaultDistance(float defaultDistance) {
diff --git a/jme3-core/src/main/java/com/jme3/light/SpotLight.java b/jme3-core/src/main/java/com/jme3/light/SpotLight.java
index 982488687..636f1447f 100644
--- a/jme3-core/src/main/java/com/jme3/light/SpotLight.java
+++ b/jme3-core/src/main/java/com/jme3/light/SpotLight.java
@@ -48,7 +48,7 @@ import java.io.IOException;
/**
* Represents a spot light.
* A spot light emits a cone of light from a position and in a direction.
- * It can be used to fake torch lights or cars' lights.
+ * It can be used to fake torch lights or car's lights.
*
* In addition to a position and a direction, spot lights also have a range which
* can be used to attenuate the influence of the light depending on the
@@ -415,7 +415,7 @@ public class SpotLight extends Light {
/**
* for internal use only
- * @return the cosines of the inner and outter angle packed in a float
+ * @return the cosines of the inner and outer angle packed in a float
*/
public float getPackedAngleCos() {
return packedAngleCos;
diff --git a/jme3-core/src/main/java/com/jme3/math/Spline.java b/jme3-core/src/main/java/com/jme3/math/Spline.java
index 2220ea8b7..2f3155c55 100644
--- a/jme3-core/src/main/java/com/jme3/math/Spline.java
+++ b/jme3-core/src/main/java/com/jme3/math/Spline.java
@@ -273,8 +273,8 @@ public class Spline implements Savable {
}
/**
- * Iterpolate a position on the spline
- * @param value a value from 0 to 1 that represent the postion between the curent control point and the next one
+ * Interpolate a position on the spline
+ * @param value a value from 0 to 1 that represent the position between the current control point and the next one
* @param currentControlPoint the current control point
* @param store a vector to store the result (use null to create a new one that will be returned by the method)
* @return the position
@@ -350,7 +350,7 @@ public class Spline implements Savable {
}
/**
- * return the total lenght of the spline
+ * return the total length of the spline
*/
public float getTotalLength() {
return totalLength;
@@ -380,7 +380,7 @@ public class Spline implements Savable {
}
/**
- * returns a list of float representing the segments lenght
+ * returns a list of float representing the segments length
*/
public List getSegmentsLength() {
return segmentsLength;
diff --git a/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java b/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java
index ffe96d0f0..9edcd505a 100644
--- a/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java
+++ b/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java
@@ -66,7 +66,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
}
/**
- * decalre a list of uniforms
+ * declare a list of uniforms
*
* @param source the source to append to
* @param uniforms the list of uniforms
@@ -81,7 +81,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
/**
* {@inheritDoc}
*
- * attributes are all declared, inPositon is decalred even if it's not in
+ * attributes are all declared, inPositon is declared even if it's not in
* the list and it's condition is nulled.
*/
@Override
@@ -187,7 +187,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
}
/**
- * Appends an ouput assignment to a shader globalOutputName =
+ * Appends an output assignment to a shader globalOutputName =
* nameSpace_varName;
*
* @param source the source StringBuilter to append the code.
@@ -212,7 +212,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
*
* 1. declaring and mapping input
* variables : variable replaced with MatParams or WorldParams are not
- * declared and are replaced by the parma acual name in the code. For others
+ * declared and are replaced by the param actual name in the code. For others
* variables, the name space is appended with a "_" before the variable name
* in the code to avoid names collision between shaderNodes.
*
@@ -227,7 +227,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
* 4. mapping outputs to global output if needed
*
*
- * All of this is embed in a #if coditional statement if needed
+ * All of this is embed in a #if conditional statement if needed
*/
@Override
protected void generateNodeMainSection(StringBuilder source, ShaderNode shaderNode, String nodeSource, ShaderGenerationInfo info) {
@@ -432,7 +432,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
/**
* replaces a variable name in a shaderNode source code by prefixing it
* with its nameSpace and "_" if needed.
- * @param nodeSource the source ot modify
+ * @param nodeSource the source to modify
* @param var the variable to replace
* @return the modified source
*/
@@ -476,7 +476,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
/**
* returns the name space to append for a variable.
- * Attributes, WorldParam and MatParam names psace must not be appended
+ * Attributes, WorldParam and MatParam names space must not be appended
* @param var the variable
* @return the namespace to append for this variable
*/
@@ -493,7 +493,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
* One can use a #if defined(inputVariableName) in a shaderNode code.
* This method is responsible for changing the variable name with the
* appropriate defined based on the mapping condition of this variable.
- * Complex condition synthax are handled.
+ * Complex condition syntax are handled.
*
* @param nodeSource the sahderNode source code
* @param shaderNode the ShaderNode being processed
@@ -574,7 +574,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
* @param source the StringBuilder to use
* @param var the variable to declare as an varying
* @param input a boolean set to true if the this varying is an input.
- * this in not used in this implementaiton but can be used in overidings
+ * this in not used in this implementation but can be used in overridings
* implementation
*/
protected void declareVarying(StringBuilder source, ShaderNodeVariable var, boolean input) {
diff --git a/jme3-core/src/main/java/com/jme3/shader/Glsl150ShaderGenerator.java b/jme3-core/src/main/java/com/jme3/shader/Glsl150ShaderGenerator.java
index 0cda27404..ae8a04385 100644
--- a/jme3-core/src/main/java/com/jme3/shader/Glsl150ShaderGenerator.java
+++ b/jme3-core/src/main/java/com/jme3/shader/Glsl150ShaderGenerator.java
@@ -85,7 +85,7 @@ public class Glsl150ShaderGenerator extends Glsl100ShaderGenerator {
* "out" keyword.
*
* after the "void main(){", the vertex output are declared and initialized
- * and the frgament outputs are declared
+ * and the fragment outputs are declared
*/
@Override
protected void generateStartOfMainSection(StringBuilder source, ShaderGenerationInfo info, Shader.ShaderType type) {
diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java b/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java
index d42dccf17..3e3677c9c 100644
--- a/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java
+++ b/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java
@@ -41,7 +41,7 @@ import java.util.List;
/**
* This class is the base for a shader generator using the ShaderNodes system,
- * it contains basis mechnaism of generation, but no actual generation code.
+ * it contains basis mechanism of generation, but no actual generation code.
* This class is abstract, any Shader generator must extend it.
*
* @author Nehon
@@ -205,10 +205,10 @@ public abstract class ShaderGenerator {
}
/**
- * returns the laguage + version of the shader should be somthing like
+ * returns the language + version of the shader should be something like
* "GLSL100" for glsl 1.0 "GLSL150" for glsl 1.5.
*
- * @param type the shader type for wich the version should be returned.
+ * @param type the shader type for which the version should be returned.
*
* @return the shaderLanguage and version.
*/
@@ -282,7 +282,7 @@ public abstract class ShaderGenerator {
/**
* Appends the given shaderNode main part to the shader declarative part. If
- * needed the sahder type can be determined by fetching the shaderNode's
+ * needed the shader type can be determined by fetching the shaderNode's
* definition type.
*
* @see ShaderNode#getDefinition()
diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java b/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java
index 41346104b..0b65edf15 100644
--- a/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java
+++ b/jme3-core/src/main/java/com/jme3/shader/ShaderNode.java
@@ -47,10 +47,10 @@ import java.util.List;
*
* A ShaderNode is based on a definition that has a shader code, inputs and
* output variables. This node can be activated based on a condition, and has
- * input and ouput mapping.
+ * input and output mapping.
*
* This class is not intended to be used by JME users directly. It's the
- * stucture for loading shader nodes from a J3md ùaterial definition file
+ * structure for loading shader nodes from a J3md material definition file
*
* @author Nehon
*/
@@ -67,7 +67,7 @@ public class ShaderNode implements Savable {
*
* @param name the name
* @param definition the ShaderNodeDefinition
- * @param condition the conditionto activate this node
+ * @param condition the condition to activate this node
*/
public ShaderNode(String name, ShaderNodeDefinition definition, String condition) {
this.name = name;
@@ -125,7 +125,7 @@ public class ShaderNode implements Savable {
}
/**
- * sets the ocndition
+ * sets the condition
*
* @param condition the condition
*/
@@ -165,14 +165,14 @@ public class ShaderNode implements Savable {
/**
* sets the output mappings
*
- * @param inputMapping the output mappings
+ * @param outputMapping the output mappings
*/
public void setOutputMapping(List outputMapping) {
this.outputMapping = outputMapping;
}
/**
- * jme seralization
+ * jme serialization
*
* @param ex the exporter
* @throws IOException
@@ -188,7 +188,7 @@ public class ShaderNode implements Savable {
}
/**
- * jme seralization
+ * jme serialization
*
* @param im the importer
* @throws IOException
diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java
index c8c7089ad..88adae648 100644
--- a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java
+++ b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java
@@ -43,7 +43,7 @@ import java.util.Arrays;
import java.util.List;
/**
- * Shader node definition structure meant for holding loaded datat from a
+ * Shader node definition structure meant for holding loaded data from a
* material definition j3md file
*
* @author Nehon
@@ -109,7 +109,7 @@ public class ShaderNodeDefinition implements Savable {
}
/**
- * sets the type of shader this def applies to
+ * sets the type of shader this definition applies to
*
* @param type the type
*/
@@ -119,14 +119,14 @@ public class ShaderNodeDefinition implements Savable {
/**
*
- * @return the docuentation for tthis definition
+ * @return the documentation for this definition
*/
public String getDocumentation() {
return documentation;
}
/**
- * sets the dcumentation
+ * sets the documentation
*
* @param documentation the documentation
*/
@@ -162,7 +162,7 @@ public class ShaderNodeDefinition implements Savable {
/**
* sets the output variables of this definition
*
- * @param inputs the output
+ * @param outputs the output
*/
public void setOutputs(List outputs) {
this.outputs = outputs;
@@ -187,11 +187,12 @@ public class ShaderNodeDefinition implements Savable {
/**
- * jme seralization (not used)
+ * jme serialization (not used)
*
* @param ex the exporter
* @throws IOException
*/
+ @Override
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(name, "name", "");
@@ -222,11 +223,12 @@ public class ShaderNodeDefinition implements Savable {
/**
- * jme seralization (not used)
+ * jme serialization (not used)
*
* @param im the importer
* @throws IOException
*/
+ @Override
public void read(JmeImporter im) throws IOException {
InputCapsule ic = (InputCapsule) im.getCapsule(this);
name = ic.readString("name", "");
diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeVariable.java b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeVariable.java
index 81dba4f52..f6408d9e1 100644
--- a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeVariable.java
+++ b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeVariable.java
@@ -69,7 +69,7 @@ public class ShaderNodeVariable implements Savable, Cloneable {
*
* @param type the glsl type of the variable
* @param nameSpace the nameSpace (can be the name of the shaderNode or
- * Globel,Attr,MatParam,WorldParam)
+ * Global,Attr,MatParam,WorldParam)
* @param name the name of the variable
* @param multiplicity the number of element if this variable is an array. Can be an Int of a declared material parameter
*/
@@ -85,7 +85,7 @@ public class ShaderNodeVariable implements Savable, Cloneable {
*
* @param type the glsl type of the variable
* @param nameSpace the nameSpace (can be the name of the shaderNode or
- * Globel,Attr,MatParam,WorldParam)
+ * Global,Attr,MatParam,WorldParam)
* @param name the name of the variable
*/
public ShaderNodeVariable(String type, String nameSpace, String name) {
@@ -132,7 +132,7 @@ public class ShaderNodeVariable implements Savable, Cloneable {
/**
*
* @return the name space (can be the name of the shaderNode or
- * Globel,Attr,MatParam,WorldParam)
+ * Global,Attr,MatParam,WorldParam)
*/
public String getNameSpace() {
return nameSpace;
@@ -140,7 +140,7 @@ public class ShaderNodeVariable implements Savable, Cloneable {
/**
* sets the nameSpace (can be the name of the shaderNode or
- * Globel,Attr,MatParam,WorldParam)
+ * Global,Attr,MatParam,WorldParam)
*
* @param nameSpace
*/
@@ -176,11 +176,12 @@ public class ShaderNodeVariable implements Savable, Cloneable {
}
/**
- * jme seralization (not used)
+ * jme serialization (not used)
*
* @param ex the exporter
* @throws IOException
*/
+ @Override
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(name, "name", "");
@@ -193,11 +194,12 @@ public class ShaderNodeVariable implements Savable, Cloneable {
}
/**
- * jme seralization (not used)
+ * jme serialization (not used)
*
* @param im the importer
* @throws IOException
*/
+ @Override
public void read(JmeImporter im) throws IOException {
InputCapsule ic = (InputCapsule) im.getCapsule(this);
name = ic.readString("name", "");
diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderVariable.java b/jme3-core/src/main/java/com/jme3/shader/ShaderVariable.java
index 76b39de54..ade852e34 100644
--- a/jme3-core/src/main/java/com/jme3/shader/ShaderVariable.java
+++ b/jme3-core/src/main/java/com/jme3/shader/ShaderVariable.java
@@ -43,7 +43,7 @@ public class ShaderVariable {
/**
* Name of the uniform as was declared in the shader.
- * E.g name = "g_WorldMatrix" if the decleration was
+ * E.g name = "g_WorldMatrix" if the declaration was
* "uniform mat4 g_WorldMatrix;".
*/
protected String name = null;
diff --git a/jme3-core/src/main/java/com/jme3/shader/VariableMapping.java b/jme3-core/src/main/java/com/jme3/shader/VariableMapping.java
index 032411e2d..5f134a002 100644
--- a/jme3-core/src/main/java/com/jme3/shader/VariableMapping.java
+++ b/jme3-core/src/main/java/com/jme3/shader/VariableMapping.java
@@ -102,7 +102,7 @@ public class VariableMapping implements Savable {
/**
* sets the right variable
*
- * @param leftVariable the right variable
+ * @param rightVariable the right variable
*/
public void setRightVariable(ShaderNodeVariable rightVariable) {
this.rightVariable = rightVariable;
@@ -153,18 +153,19 @@ public class VariableMapping implements Savable {
/**
* sets the right swizzle
*
- * @param leftSwizzling the right swizzle
+ * @param rightSwizzling the right swizzle
*/
public void setRightSwizzling(String rightSwizzling) {
this.rightSwizzling = rightSwizzling;
}
/**
- * jme seralization (not used)
+ * jme serialization (not used)
*
* @param ex the exporter
* @throws IOException
*/
+ @Override
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(leftVariable, "leftVariable", null);
@@ -175,11 +176,12 @@ public class VariableMapping implements Savable {
}
/**
- * jme seralization (not used)
+ * jme serialization (not used)
*
* @param im the importer
* @throws IOException
*/
+ @Override
public void read(JmeImporter im) throws IOException {
InputCapsule ic = (InputCapsule) im.getCapsule(this);
leftVariable = (ShaderNodeVariable) ic.readSavable("leftVariable", null);
diff --git a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java
index f882ac580..0d839be29 100644
--- a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java
+++ b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java
@@ -51,7 +51,7 @@ import java.io.IOException;
/**
*
* Generic abstract filter that holds common implementations for the different
- * shadow filtesr
+ * shadow filters
*
* @author Rémy Bouquet aka Nehon
*/
@@ -140,7 +140,7 @@ public abstract class AbstractShadowFilter ext
/**
* Set the distance from the eye where the shadows will be rendered default
- * value is dynamicaly computed to the shadow casters/receivers union bound
+ * value is dynamically computed to the shadow casters/receivers union bound
* zFar, capped to view frustum far value.
*
* @param zFar the zFar values that override the computed one
@@ -181,7 +181,7 @@ public abstract class AbstractShadowFilter ext
/**
* Set the shadowIntensity, the value should be between 0 and 1, a 0 value
- * gives a bright and invisilble shadow, a 1 value gives a pitch black
+ * gives a bright and invisible shadow, a 1 value gives a pitch black
* shadow, default is 0.7
*
* @param shadowIntensity the darkness of the shadow
@@ -285,7 +285,7 @@ public abstract class AbstractShadowFilter ext
/**
* returns the pre shadows pass render state.
* use it to adjust the RenderState parameters of the pre shadow pass.
- * Note that this will be overriden if the preShadow technique in the material has a ForcedRenderState
+ * Note that this will be overridden if the preShadow technique in the material has a ForcedRenderState
* @return the pre shadow render state.
*/
public RenderState getPreShadowForcedRenderState() {
diff --git a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java
index d1b4586b3..7ae9f9cfd 100644
--- a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java
+++ b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java
@@ -621,7 +621,7 @@ public abstract class AbstractShadowRenderer implements SceneProcessor, Savable
/**
* Set the distance from the eye where the shadows will be rendered default
- * value is dynamicaly computed to the shadow casters/receivers union bound
+ * value is dynamically computed to the shadow casters/receivers union bound
* zFar, capped to view frustum far value.
*
* @param zFar the zFar values that override the computed one
@@ -752,7 +752,7 @@ public abstract class AbstractShadowRenderer implements SceneProcessor, Savable
/**
* returns the pre shadows pass render state.
* use it to adjust the RenderState parameters of the pre shadow pass.
- * Note that this will be overriden if the preShadow technique in the material has a ForcedRenderState
+ * Note that this will be overridden if the preShadow technique in the material has a ForcedRenderState
* @return the pre shadow render state.
*/
public RenderState getPreShadowForcedRenderState() {
diff --git a/jme3-core/src/main/java/com/jme3/shadow/PssmShadowFilter.java b/jme3-core/src/main/java/com/jme3/shadow/PssmShadowFilter.java
index eda1c5ee6..eecd9a28a 100644
--- a/jme3-core/src/main/java/com/jme3/shadow/PssmShadowFilter.java
+++ b/jme3-core/src/main/java/com/jme3/shadow/PssmShadowFilter.java
@@ -140,7 +140,7 @@ public class PssmShadowFilter extends Filter {
}
/**
- * returns the labda parameter
+ * returns the lambda parameter
* @see #setLambda(float lambda)
* @return lambda
*/
@@ -171,7 +171,7 @@ public class PssmShadowFilter extends Filter {
/**
* Set the distance from the eye where the shadows will be rendered
- * default value is dynamicaly computed to the shadow casters/receivers union bound zFar, capped to view frustum far value.
+ * default value is dynamically computed to the shadow casters/receivers union bound zFar, capped to view frustum far value.
* @param zFar the zFar values that override the computed one
*/
public void setShadowZExtend(float zFar) {
@@ -179,7 +179,7 @@ public class PssmShadowFilter extends Filter {
}
/**
- * returns the shdaow intensity
+ * returns the shadow intensity
* @see #setShadowIntensity(float shadowIntensity)
* @return shadowIntensity
*/
@@ -189,7 +189,7 @@ public class PssmShadowFilter extends Filter {
/**
* Set the shadowIntensity, the value should be between 0 and 1,
- * a 0 value gives a bright and invisilble shadow,
+ * a 0 value gives a bright and invisible shadow,
* a 1 value gives a pitch black shadow,
* default is 0.7
* @param shadowIntensity the darkness of the shadow
diff --git a/jme3-core/src/main/java/com/jme3/shadow/PssmShadowRenderer.java b/jme3-core/src/main/java/com/jme3/shadow/PssmShadowRenderer.java
index a4f06df41..bf6362d62 100644
--- a/jme3-core/src/main/java/com/jme3/shadow/PssmShadowRenderer.java
+++ b/jme3-core/src/main/java/com/jme3/shadow/PssmShadowRenderer.java
@@ -481,7 +481,7 @@ public class PssmShadowRenderer implements SceneProcessor {
}
/**
- * For dubuging purpose Allow to "snapshot" the current frustrum to the
+ * For debugging purpose Allow to "snapshot" the current frustrum to the
* scene
*/
public void displayDebug() {
@@ -591,7 +591,7 @@ public class PssmShadowRenderer implements SceneProcessor {
}
/**
- * returns the labda parameter see #setLambda(float lambda)
+ * returns the lambda parameter see #setLambda(float lambda)
*
* @return lambda
*/
@@ -623,7 +623,7 @@ public class PssmShadowRenderer implements SceneProcessor {
/**
* Set the distance from the eye where the shadows will be rendered default
- * value is dynamicaly computed to the shadow casters/receivers union bound
+ * value is dynamically computed to the shadow casters/receivers union bound
* zFar, capped to view frustum far value.
*
* @param zFar the zFar values that override the computed one
@@ -637,7 +637,7 @@ public class PssmShadowRenderer implements SceneProcessor {
}
/**
- * returns the shdaow intensity
+ * returns the shadow intensity
*
* @see #setShadowIntensity(float shadowIntensity)
* @return shadowIntensity
@@ -648,7 +648,7 @@ public class PssmShadowRenderer implements SceneProcessor {
/**
* Set the shadowIntensity, the value should be between 0 and 1, a 0 value
- * gives a bright and invisilble shadow, a 1 value gives a pitch black
+ * gives a bright and invisible shadow, a 1 value gives a pitch black
* shadow, default is 0.7
*
* @param shadowIntensity the darkness of the shadow
diff --git a/jme3-core/src/main/java/com/jme3/util/BufferUtils.java b/jme3-core/src/main/java/com/jme3/util/BufferUtils.java
index feb3ff8cd..20189afb1 100644
--- a/jme3-core/src/main/java/com/jme3/util/BufferUtils.java
+++ b/jme3-core/src/main/java/com/jme3/util/BufferUtils.java
@@ -325,7 +325,7 @@ public final class BufferUtils {
* @param buf
* the buffer to insert into
* @param index
- * the postion to place the data; in terms of quaternions not floats
+ * the position to place the data; in terms of quaternions not floats
*/
public static void setInBuffer(Quaternion quat, FloatBuffer buf,
int index) {
@@ -345,7 +345,7 @@ public final class BufferUtils {
* @param buf
* the buffer to insert into
* @param index
- * the postion to place the data; in terms of vector4 not floats
+ * the position to place the data; in terms of vector4 not floats
*/
public static void setInBuffer(Vector4f vec, FloatBuffer buf,
int index) {
@@ -438,7 +438,7 @@ public final class BufferUtils {
/**
* Copies a Vector3f from one position in the buffer to another. The index
- * values are in terms of vector number (eg, vector number 0 is postions 0-2
+ * values are in terms of vector number (eg, vector number 0 is positions 0-2
* in the FloatBuffer.)
*
* @param buf
@@ -600,7 +600,7 @@ public final class BufferUtils {
* @param buf
* the buffer to insert into
* @param index
- * the postion to place the data; in terms of vectors not floats
+ * the position to place the data; in terms of vectors not floats
*/
public static void setInBuffer(Vector2f vector, FloatBuffer buf, int index) {
buf.put(index * 2, vector.x);
@@ -643,7 +643,7 @@ public final class BufferUtils {
/**
* Copies a Vector2f from one position in the buffer to another. The index
- * values are in terms of vector number (eg, vector number 0 is postions 0-1
+ * values are in terms of vector number (eg, vector number 0 is positions 0-1
* in the FloatBuffer.)
*
* @param buf
@@ -835,7 +835,7 @@ public final class BufferUtils {
/**
* Creates a new DoubleBuffer with the same contents as the given
- * DoubleBuffer. The new DoubleBuffer is seperate from the old one and
+ * DoubleBuffer. The new DoubleBuffer is separate from the old one and
* changes are not reflected across. If you want to reflect changes,
* consider using Buffer.duplicate().
*
@@ -897,7 +897,7 @@ public final class BufferUtils {
/**
* Creates a new FloatBuffer with the same contents as the given
- * FloatBuffer. The new FloatBuffer is seperate from the old one and changes
+ * FloatBuffer. The new FloatBuffer is separate from the old one and changes
* are not reflected across. If you want to reflect changes, consider using
* Buffer.duplicate().
*
@@ -960,7 +960,7 @@ public final class BufferUtils {
/**
* Creates a new IntBuffer with the same contents as the given IntBuffer.
- * The new IntBuffer is seperate from the old one and changes are not
+ * The new IntBuffer is separate from the old one and changes are not
* reflected across. If you want to reflect changes, consider using
* Buffer.duplicate().
*
@@ -1116,7 +1116,7 @@ public final class BufferUtils {
/**
* Creates a new ShortBuffer with the same contents as the given ShortBuffer.
- * The new ShortBuffer is seperate from the old one and changes are not
+ * The new ShortBuffer is separate from the old one and changes are not
* reflected across. If you want to reflect changes, consider using
* Buffer.duplicate().
*
diff --git a/jme3-core/src/main/java/com/jme3/util/ListSort.java b/jme3-core/src/main/java/com/jme3/util/ListSort.java
index db16ef10c..8f61961ad 100644
--- a/jme3-core/src/main/java/com/jme3/util/ListSort.java
+++ b/jme3-core/src/main/java/com/jme3/util/ListSort.java
@@ -124,7 +124,7 @@ public class ListSort {
}
/**
- * Allocate temp veriables for the given length This method should be called
+ * Allocate temp variables for the given length This method should be called
* at least once, but only if the length of the list to sort changed before
* sorting
*
@@ -427,7 +427,7 @@ public class ListSort {
/**
* Merge runs A and B where A index in the stack is idx and B index is idx+1
*
- * @param idx index of the firts of two runs to merge
+ * @param idx index of the first of two runs to merge
*/
private void mergeRuns(int idx) {
diff --git a/jme3-core/src/main/java/com/jme3/util/MaterialDebugAppState.java b/jme3-core/src/main/java/com/jme3/util/MaterialDebugAppState.java
index 6197aca35..01464f67b 100644
--- a/jme3-core/src/main/java/com/jme3/util/MaterialDebugAppState.java
+++ b/jme3-core/src/main/java/com/jme3/util/MaterialDebugAppState.java
@@ -67,10 +67,10 @@ import java.util.logging.Logger;
* This appState is for debug purpose only, and was made to provide an easy way
* to test shaders, with a live update capability.
*
- * This calss provides and easy way to reload a material and catches compilation
+ * This class provides and easy way to reload a material and catches compilation
* errors when needed and displays the error in the console.
*
- * If no error accur on compilation, the material is reloaded in the scene.
+ * If no error occur on compilation, the material is reloaded in the scene.
*
* You can either trigger the reload when pressing a key (or whatever input is
* supported by Triggers you can attach to the input manager), or trigger it
diff --git a/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java b/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java
index af20b842b..d3f6f4395 100644
--- a/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java
+++ b/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java
@@ -23,7 +23,7 @@ import java.util.logging.Logger;
* https://developer.blender.org/diffusion/B/browse/master/intern/mikktspace/mikktspace.c
* https://developer.blender.org/diffusion/B/browse/master/intern/mikktspace/mikktspace.h
*
- * MikkTspace looks like the new standard of tengent generation in 3D softwares.
+ * MikkTspace looks like the new standard of tangent generation in 3D softwares.
* Xnormal, Blender, Substance painter, and many more use it.
*
* Usage is :
diff --git a/jme3-core/src/plugins/java/com/jme3/material/plugins/ConditionParser.java b/jme3-core/src/plugins/java/com/jme3/material/plugins/ConditionParser.java
index e75597bfd..2041fba09 100644
--- a/jme3-core/src/plugins/java/com/jme3/material/plugins/ConditionParser.java
+++ b/jme3-core/src/plugins/java/com/jme3/material/plugins/ConditionParser.java
@@ -41,7 +41,7 @@ import java.util.regex.Pattern;
* style.
*
* extractDefines is able to get a list of defines in an expression and update
- * the formatter expression with upercased defines
+ * the formatter expression with uppercased defines
*
* @author Nehon
*/
diff --git a/jme3-core/src/plugins/java/com/jme3/material/plugins/MatParseException.java b/jme3-core/src/plugins/java/com/jme3/material/plugins/MatParseException.java
index ac810ae36..095065539 100644
--- a/jme3-core/src/plugins/java/com/jme3/material/plugins/MatParseException.java
+++ b/jme3-core/src/plugins/java/com/jme3/material/plugins/MatParseException.java
@@ -36,7 +36,7 @@ import java.io.IOException;
/**
* Custom Exception to report a j3md Material definition file parsing error.
- * This exception reports the line number where the error occured.
+ * This exception reports the line number where the error occurred.
*
* @author Nehon
*/
@@ -70,7 +70,7 @@ public class MatParseException extends IOException {
* @param expected the expected value
* @param got the actual value
* @param statement the read statement
- * @param cause the embed exception that occured
+ * @param cause the embed exception that occurred
*/
public MatParseException(String expected, String got, Statement statement, Throwable cause) {
super("Error On line " + statement.getLineNumber() + " : " + statement.getLine() + "\n->Expected " + (expected == null ? "a statement" : expected) + ", got '" + got + "'!", cause);
@@ -82,7 +82,7 @@ public class MatParseException extends IOException {
*
* @param text the error message
* @param statement the statement where the error occur
- * @param cause the embed exception that occured
+ * @param cause the embed exception that occurred
*/
public MatParseException(String text, Statement statement, Throwable cause) {
super("Error On line " + statement.getLineNumber() + " : " + statement.getLine() + "\n->" + text, cause);
diff --git a/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java b/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java
index efdf28f4b..9c6fb7c31 100644
--- a/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java
+++ b/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java
@@ -59,7 +59,7 @@ import java.util.Map;
*
* Also it allows to load the ShaderNodes from a j3md file and build the
* ShaderNodes list of each technique and the ShaderGenerationInfo needed to
- * generate the sahders
+ * generate shaders
*
* @author Nehon
*/
@@ -209,9 +209,9 @@ public class ShaderNodeLoaderDelegate {
* ShaderNodesDefinition This method is used by the j3m loader.
*
* When loaded in a material, the definitions are not stored as a list, but
- * they are stores in Shadernodes based onthis definition.
+ * they are stores in Shadernodes based on this definition.
*
- * The map is here to map the defintion to the nodes, and ovoid reloading
+ * The map is here to map the definition to the nodes, and ovoid reloading
* already loaded definitions
*
* @param statements the list of statements to parse
@@ -222,7 +222,7 @@ public class ShaderNodeLoaderDelegate {
}
/**
- * effectiveliy reads the ShaderNodesDefinitions block
+ * effectively reads the ShaderNodesDefinitions block
*
* @param statements the list of statements to parse
* @param key the ShaderNodeDefinitionKey
@@ -273,7 +273,7 @@ public class ShaderNodeLoaderDelegate {
* reads a variable declaration statement <glslType> <varName>
*
* @param statement the statement to parse
- * @return a ShaderNodeVariable axtracted from the statement
+ * @return a ShaderNodeVariable extracted from the statement
* @throws IOException
*/
protected ShaderNodeVariable readVariable(Statement statement) throws IOException {
@@ -448,7 +448,7 @@ public class ShaderNodeLoaderDelegate {
}
/**
- * searcha variable in the given list and updates its type and namespace
+ * search a variable in the given list and updates its type and namespace
*
* @param var the variable to update
* @param list the variables list
@@ -531,7 +531,7 @@ public class ShaderNodeLoaderDelegate {
/**
* updates the right variable of the given mapping from a UniformBinding (a
- * WorldParam) it checks if the unifrom hasn't already been loaded, add it
+ * WorldParam) it checks if the uniform hasn't already been loaded, add it
* to the maps if not.
*
* @param param the WorldParam UniformBinding
@@ -559,7 +559,7 @@ public class ShaderNodeLoaderDelegate {
/**
* updates the right variable of the given mapping from a MatParam (a
- * WorldParam) it checks if the unifrom hasn't already been loaded, add it
+ * WorldParam) it checks if the uniform hasn't already been loaded, add it
* to the maps if not.
*
* @param param the MatParam
@@ -622,7 +622,7 @@ public class ShaderNodeLoaderDelegate {
}
/**
- * Adds a define to the techniquedef
+ * Adds a define to the technique def
*
* @param paramName
*/
@@ -767,7 +767,7 @@ public class ShaderNodeLoaderDelegate {
/**
* reads an output mapping
*
- * @param statement1 the staement being read
+ * @param statement1 the statement being read
* @return the mapping
* @throws IOException
*/
@@ -803,7 +803,7 @@ public class ShaderNodeLoaderDelegate {
}
/**
- * Reads alist of ShaderNodes
+ * Reads a list of ShaderNodes
*
* @param statements the list of statements to read
* @throws IOException
@@ -843,7 +843,7 @@ public class ShaderNodeLoaderDelegate {
* retrieve the leftType corresponding sampler type from the rightType
*
* @param leftType the left samplerType
- * @param rightType the right sampler type (can be multiple types sparated
+ * @param rightType the right sampler type (can be multiple types separated
* by "|"
* @return the type or null if not found
*/
@@ -885,7 +885,7 @@ public class ShaderNodeLoaderDelegate {
/**
* store an attribute
*
- * @param var the variable ot store
+ * @param var the variable to store
*/
public void storeAttribute(ShaderNodeVariable var) {
storeVariable(var, techniqueDef.getShaderGenerationInfo().getAttributes());
@@ -894,7 +894,7 @@ public class ShaderNodeLoaderDelegate {
/**
* store a vertex uniform
*
- * @param var the variable ot store
+ * @param var the variable to store
*/
public void storeVertexUniform(ShaderNodeVariable var) {
storeVariable(var, techniqueDef.getShaderGenerationInfo().getVertexUniforms());
@@ -904,7 +904,7 @@ public class ShaderNodeLoaderDelegate {
/**
* store a fragment uniform
*
- * @param var the variable ot store
+ * @param var the variable to store
*/
public void storeFragmentUniform(ShaderNodeVariable var) {
storeVariable(var, techniqueDef.getShaderGenerationInfo().getFragmentUniforms());
@@ -921,7 +921,7 @@ public class ShaderNodeLoaderDelegate {
}
/**
- * find the definiton from this statement (loads it if necessary)
+ * find the definition from this statement (loads it if necessary)
*
* @param statement the statement being read
* @return the definition
@@ -1049,7 +1049,7 @@ public class ShaderNodeLoaderDelegate {
}
/**
- * check the types of a mapping, left type must match right type tkae the
+ * check the types of a mapping, left type must match right type take the
* swizzle into account
*
* @param mapping the mapping
diff --git a/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java b/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java
index 41ee727a9..56bc02bd1 100644
--- a/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java
+++ b/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java
@@ -81,14 +81,14 @@ import java.util.logging.Logger;
* informations can be found here http://www.melax.com/polychop
* http://sajty.elementfx.com/progressivemesh/GSoC2012.pdf
*
- * The algorithm sort the vertice according to their collapsse cost
+ *
The algorithm sort vertices according to their collapse cost
* ascending. It collapse from the "cheapest" vertex to the more expensive.
* Usage :
*
* LodGenerator lODGenerator = new LodGenerator(geometry);
* lODGenerator.bakeLods(reductionMethod,reductionvalue);
*
redutionMethod type is VertexReductionMethod described here
- * {@link TriangleReductionMethod} reductionvalue depends on the
+ * {@link TriangleReductionMethod} reduction value depends on the
* reductionMethod
*
*
@@ -111,7 +111,7 @@ public class LodGenerator {
private Mesh mesh;
/**
- * Describe the way trinagles will be removed.
PROPORTIONAL :
+ * Describe the way triangles will be removed.
PROPORTIONAL :
* Percentage of triangles to be removed from the mesh. Valid range is a
* number between 0.0 and 1.0
CONSTANT : Triangle count to be removed
* from the mesh. Pass only integers or it will be rounded.
@@ -240,7 +240,7 @@ public class LodGenerator {
}
}
/**
- * Compartator used to sort vertices according to their collapse cost
+ * Comparator used to sort vertices according to their collapse cost
*/
private Comparator collapseComparator = new Comparator() {
public int compare(Vertex o1, Vertex o2) {
@@ -525,14 +525,14 @@ public class LodGenerator {
/**
* Computes the lod and return a list of VertexBuffers that can then be used
- * for lod (use Mesg.setLodLevels(VertexBuffer[]))
+ * for lod (use Mesh.setLodLevels(VertexBuffer[]))
*
* This method must be fed with the reduction method
* {@link TriangleReductionMethod} and a list of reduction values.
for
* each value a lod will be generated.
The resulting array will always
* contain at index 0 the original index buffer of the mesh.
* Important note : some meshes cannot be decimated, so the
- * result of this method can varry depending of the given mesh. Also the
+ * result of this method can vary depending of the given mesh. Also the
* reduction values are indicative and the produces mesh will not always
* meet the required reduction.
*
@@ -597,7 +597,7 @@ public class LodGenerator {
* This method must be fed with the reduction method
* {@link TriangleReductionMethod} and a list of reduction values.
for
* each value a lod will be generated.
Important note :
- * some meshes cannot be decimated, so the result of this method can varry
+ * some meshes cannot be decimated, so the result of this method can vary
* depending of the given mesh. Also the reduction values are indicative and
* the produces mesh will not always meet the required reduction.
*