@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
53 lines • 1.8 kB
JavaScript
import { MaterialDefines } from "./materialDefines.js";
/**
* Mixin to add Image processing defines to your material defines
* @internal
*/
export function ImageProcessingDefinesMixin(base) {
return class extends base {
constructor() {
super(...arguments);
// Implement all members of IImageProcessingConfigurationDefines here
this.IMAGEPROCESSING = false;
this.VIGNETTE = false;
this.VIGNETTEBLENDMODEMULTIPLY = false;
this.VIGNETTEBLENDMODEOPAQUE = false;
this.TONEMAPPING = 0;
this.CONTRAST = false;
this.COLORCURVES = false;
this.COLORGRADING = false;
this.COLORGRADING3D = false;
this.SAMPLER3DGREENDEPTH = false;
this.SAMPLER3DBGRMAP = false;
this.DITHER = false;
this.IMAGEPROCESSINGPOSTPROCESS = false;
this.SKIPFINALCOLORCLAMP = false;
this.EXPOSURE = false;
}
};
}
/**
* @internal
*/
export class ImageProcessingConfigurationDefines extends MaterialDefines {
constructor() {
super();
this.IMAGEPROCESSING = false;
this.VIGNETTE = false;
this.VIGNETTEBLENDMODEMULTIPLY = false;
this.VIGNETTEBLENDMODEOPAQUE = false;
this.TONEMAPPING = 0;
this.CONTRAST = false;
this.COLORCURVES = false;
this.COLORGRADING = false;
this.COLORGRADING3D = false;
this.SAMPLER3DGREENDEPTH = false;
this.SAMPLER3DBGRMAP = false;
this.DITHER = false;
this.IMAGEPROCESSINGPOSTPROCESS = false;
this.EXPOSURE = false;
this.SKIPFINALCOLORCLAMP = false;
this.rebuild();
}
}
//# sourceMappingURL=imageProcessingConfiguration.defines.js.map