|
@@ -82,6 +82,7 @@ export class MotionBlurPostProcess extends PostProcess {
|
|
* @param reusable If the post process can be reused on the same frame. (default: false)
|
|
* @param reusable If the post process can be reused on the same frame. (default: false)
|
|
* @param textureType Type of textures used when performing the post process. (default: 0)
|
|
* @param textureType Type of textures used when performing the post process. (default: 0)
|
|
* @param blockCompilation If compilation of the shader should not be done in the constructor. The updateEffect method can be used to compile the shader at a later time. (default: false)
|
|
* @param blockCompilation If compilation of the shader should not be done in the constructor. The updateEffect method can be used to compile the shader at a later time. (default: false)
|
|
|
|
+ * @param forceGeometryBuffer If this post process should use geometry buffer instead of prepass (default: false)
|
|
*/
|
|
*/
|
|
constructor(name: string, scene: Scene, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType: number = Constants.TEXTURETYPE_UNSIGNED_INT, blockCompilation = false, forceGeometryBuffer = false) {
|
|
constructor(name: string, scene: Scene, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType: number = Constants.TEXTURETYPE_UNSIGNED_INT, blockCompilation = false, forceGeometryBuffer = false) {
|
|
super(name, "motionBlur", ["motionStrength", "motionScale", "screenSize"], ["velocitySampler"], options, camera, samplingMode, engine, reusable, "#define GEOMETRY_SUPPORTED\n#define SAMPLES 64.0", textureType, undefined, null, blockCompilation);
|
|
super(name, "motionBlur", ["motionStrength", "motionScale", "screenSize"], ["velocitySampler"], options, camera, samplingMode, engine, reusable, "#define GEOMETRY_SUPPORTED\n#define SAMPLES 64.0", textureType, undefined, null, blockCompilation);
|
|
@@ -98,7 +99,7 @@ export class MotionBlurPostProcess extends PostProcess {
|
|
} else {
|
|
} else {
|
|
this._prePassRenderer = <PrePassRenderer>scene.enablePrePassRenderer();
|
|
this._prePassRenderer = <PrePassRenderer>scene.enablePrePassRenderer();
|
|
this._prePassRenderer.markAsDirty();
|
|
this._prePassRenderer.markAsDirty();
|
|
- this.prePassEffectConfiguration = new MotionBlurConfiguration();
|
|
|
|
|
|
+ this._prePassEffectConfiguration = new MotionBlurConfiguration();
|
|
}
|
|
}
|
|
|
|
|
|
if (!this._geometryBufferRenderer && !this._prePassRenderer) {
|
|
if (!this._geometryBufferRenderer && !this._prePassRenderer) {
|