|
@@ -31,7 +31,7 @@ interface ISavedTransformationMatrix {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * This renderer is helpfull to fill one of the render target with a geometry buffer.
|
|
|
|
|
|
+ * This renderer is helpful to fill one of the render target with a geometry buffer.
|
|
*/
|
|
*/
|
|
export class GeometryBufferRenderer {
|
|
export class GeometryBufferRenderer {
|
|
/**
|
|
/**
|
|
@@ -197,7 +197,7 @@ export class GeometryBufferRenderer {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Gets wether or not G buffer are supported by the running hardware.
|
|
|
|
|
|
+ * Gets whether or not G buffer are supported by the running hardware.
|
|
* This requires draw buffer supports
|
|
* This requires draw buffer supports
|
|
*/
|
|
*/
|
|
public get isSupported(): boolean {
|
|
public get isSupported(): boolean {
|
|
@@ -246,7 +246,7 @@ export class GeometryBufferRenderer {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Sets wether or not objects velocities are enabled for the G buffer.
|
|
|
|
|
|
+ * Sets whether or not objects velocities are enabled for the G buffer.
|
|
*/
|
|
*/
|
|
public set enableVelocity(enable: boolean) {
|
|
public set enableVelocity(enable: boolean) {
|
|
this._enableVelocity = enable;
|
|
this._enableVelocity = enable;
|
|
@@ -269,7 +269,7 @@ export class GeometryBufferRenderer {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Sets wether or not objects roughness are enabled for the G buffer.
|
|
|
|
|
|
+ * Sets whether or not objects roughness are enabled for the G buffer.
|
|
*/
|
|
*/
|
|
public set enableReflectivity(enable: boolean) {
|
|
public set enableReflectivity(enable: boolean) {
|
|
this._enableReflectivity = enable;
|
|
this._enableReflectivity = enable;
|
|
@@ -317,7 +317,7 @@ export class GeometryBufferRenderer {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Checks wether everything is ready to render a submesh to the G buffer.
|
|
|
|
|
|
+ * Checks whether everything is ready to render a submesh to the G buffer.
|
|
* @param subMesh the submesh to check readiness for
|
|
* @param subMesh the submesh to check readiness for
|
|
* @param useInstances is the mesh drawn using instance or not
|
|
* @param useInstances is the mesh drawn using instance or not
|
|
* @returns true if ready otherwise false
|
|
* @returns true if ready otherwise false
|