Explorar o código

Lens Flares documentation

Jason Sturges %!s(int64=4) %!d(string=hai) anos
pai
achega
eb4884fedd

+ 3 - 3
src/LensFlares/lensFlare.ts

@@ -5,7 +5,7 @@ import { LensFlareSystem } from "./lensFlareSystem";
 import { Constants } from "../Engines/constants";
 /**
  * This represents one of the lens effect in a `lensFlareSystem`.
- * It controls one of the indiviual texture used in the effect.
+ * It controls one of the individual texture used in the effect.
  * @see https://doc.babylonjs.com/how_to/how_to_use_lens_flares
  */
 export class LensFlare {
@@ -29,7 +29,7 @@ export class LensFlare {
     /**
      * Creates a new Lens Flare.
      * This represents one of the lens effect in a `lensFlareSystem`.
-     * It controls one of the indiviual texture used in the effect.
+     * It controls one of the individual texture used in the effect.
      * @see https://doc.babylonjs.com/how_to/how_to_use_lens_flares
      * @param size Define the size of the lens flare (a floating value between 0 and 1)
      * @param position Define the position of the lens flare in the system. (a floating value between -1 and 1). A value of 0 is located on the emitter. A value greater than 0 is beyond the emitter and a value lesser than 0 is behind.
@@ -45,7 +45,7 @@ export class LensFlare {
     /**
      * Instantiates a new Lens Flare.
      * This represents one of the lens effect in a `lensFlareSystem`.
-     * It controls one of the indiviual texture used in the effect.
+     * It controls one of the individual texture used in the effect.
      * @see https://doc.babylonjs.com/how_to/how_to_use_lens_flares
      * @param size Define the size of the lens flare in the system (a floating value between 0 and 1)
      * @param position Define the position of the lens flare in the system. (a floating value between -1 and 1). A value of 0 is located on the emitter. A value greater than 0 is beyond the emitter and a value lesser than 0 is behind.

+ 1 - 1
src/LensFlares/lensFlareSystem.ts

@@ -376,7 +376,7 @@ export class LensFlareSystem {
     }
 
     /**
-     * Parse a lens flare system from a JSON repressentation
+     * Parse a lens flare system from a JSON representation
      * @param parsedLensFlareSystem Define the JSON to parse
      * @param scene Define the scene the parsed system should be instantiated in
      * @param rootUrl Define the rootUrl of the load sequence to easily find a load relative dependencies such as textures

+ 2 - 2
src/LensFlares/lensFlareSystemSceneComponent.ts

@@ -97,7 +97,7 @@ AbstractScene.prototype.addLensFlareSystem = function(newLensFlareSystem: LensFl
  */
 export class LensFlareSystemSceneComponent implements ISceneSerializableComponent {
     /**
-     * The component name helpfull to identify the component in the list of scene components.
+     * The component name helpful to identify the component in the list of scene components.
      */
     public readonly name = SceneComponentConstants.NAME_LENSFLARESYSTEM;
 
@@ -175,7 +175,7 @@ export class LensFlareSystemSceneComponent implements ISceneSerializableComponen
     }
 
     /**
-     * Disposes the component and the associated ressources.
+     * Disposes the component and the associated resources.
      */
     public dispose(): void {
         let lensFlareSystems = this.scene.lensFlareSystems;