/** * R3.D3.API.Pass.FXAA * @param apiPass * @param autoUpdateSize * @param width * @param height * @constructor */ R3.D3.API.Pass.FXAA = function ( apiPass, autoUpdateSize, width, height ) { if (R3.Utils.UndefinedOrNull(apiPass)) { apiPass = { passType: R3.D3.API.Pass.PASS_TYPE_FXAA }; } if (R3.Utils.UndefinedOrNull(apiPass.passType)) { apiPass.passType = R3.D3.API.Pass.PASS_TYPE_FXAA; } if (R3.Utils.UndefinedOrNull(autoUpdateSize)) { autoUpdateSize = true; } this.autoUpdateSize = autoUpdateSize; if (R3.Utils.UndefinedOrNull(width)) { width = 512; } this.width = width; if (R3.Utils.UndefinedOrNull(height)) { height = 512; } this.height = height; R3.D3.API.Pass.call( this, apiPass.id, apiPass.name, apiPass.passType, apiPass.parentEntity, apiPass.renderToScreen ) }; R3.D3.API.Pass.FXAA.prototype = Object.create(R3.D3.API.Pass.prototype); R3.D3.API.Pass.FXAA.prototype.constructor = R3.D3.API.Pass.FXAA;