|
@@ -42,13 +42,13 @@ module BABYLON {
|
|
|
* @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)
|
|
|
*/
|
|
|
constructor(name: string, originalFromInput:PostProcess, circleOfConfusion:PostProcess, private blurSteps:Array<PostProcess>, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType: number = Engine.TEXTURETYPE_UNSIGNED_INT, blockCompilation = false) {
|
|
|
- super(name, "depthOfFieldMerge", ["bloomWeight"], ["circleOfConfusionSampler", "blurStep0", "blurStep1", "blurStep2", "bloomBlur"], options, camera, samplingMode, engine, reusable, null, textureType, undefined, null, true);
|
|
|
+ super(name, "depthOfFieldMerge", [], ["circleOfConfusionSampler", "blurStep0", "blurStep1", "blurStep2"], options, camera, samplingMode, engine, reusable, null, textureType, undefined, null, true);
|
|
|
this.onApplyObservable.add((effect: Effect) => {
|
|
|
effect.setTextureFromPostProcess("textureSampler", originalFromInput);
|
|
|
effect.setTextureFromPostProcessOutput("circleOfConfusionSampler", circleOfConfusion);
|
|
|
blurSteps.forEach((step,index)=>{
|
|
|
effect.setTextureFromPostProcessOutput("blurStep"+(blurSteps.length-index-1), step);
|
|
|
- });
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
if(!blockCompilation){
|