phaser4-rex-plugins
Version:
35 lines (29 loc) • 723 B
JavaScript
export default {
setBloomEnable(enable) {
if (enable === undefined) {
enable = true;
}
this.bloomEnable = enable;
return this;
},
setBloomRadius(value) {
this.bloomRadius = value;
return this;
},
setBloomIntensity(value) {
this.bloomIntensity = value;
return this;
},
setBloomThreshold(value) {
this.bloomThreshold = value;
return this;
},
setBloomTexelSize(width, height) {
if (height === undefined) {
height = width;
}
this.bloomTexelWidth = width;
this.bloomTexelHeight = height;
return this;
}
}