Skip to content

Commit

Permalink
Add blendFunctions record
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Dec 27, 2023
1 parent 076ef1c commit 1b7ffb0
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
71 changes: 71 additions & 0 deletions manual/assets/js/src/utils/blendFunctions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import {
AddBlendFunction,
AlphaBlendFunction,
AverageBlendFunction,
ColorBlendFunction,
ColorBurnBlendFunction,
ColorDodgeBlendFunction,
DarkenBlendFunction,
DifferenceBlendFunction,
DivideBlendFunction,
DstBlendFunction,
ExclusionBlendFunction,
HardLightBlendFunction,
HardMixBlendFunction,
HueBlendFunction,
InvertBlendFunction,
InvertRGBBlendFunction,
LightenBlendFunction,
LinearBurnBlendFunction,
LinearDodgeBlendFunction,
LinearLightBlendFunction,
LuminosityBlendFunction,
MixBlendFunction,
MultiplyBlendFunction,
NegationBlendFunction,
OverlayBlendFunction,
PinLightBlendFunction,
ReflectBlendFunction,
SaturationBlendFunction,
SrcBlendFunction,
ScreenBlendFunction,
SoftLightBlendFunction,
SubtractBlendFunction,
VividLightBlendFunction
} from "postprocessing";

export const blendFunctions = {
"add": new AddBlendFunction(),
"alpha": new AlphaBlendFunction(),
"average": new AverageBlendFunction(),
"color": new ColorBlendFunction(),
"color-burn": new ColorBurnBlendFunction(),
"color-dodge": new ColorDodgeBlendFunction(),
"darken": new DarkenBlendFunction(),
"difference": new DifferenceBlendFunction(),
"divide": new DivideBlendFunction(),
"dst": new DstBlendFunction(),
"exclusion": new ExclusionBlendFunction(),
"hard-light": new HardLightBlendFunction(),
"hard-mix": new HardMixBlendFunction(),
"hue": new HueBlendFunction(),
"invert": new InvertBlendFunction(),
"invert-rgb": new InvertRGBBlendFunction(),
"lighten": new LightenBlendFunction(),
"linear-burn": new LinearBurnBlendFunction(),
"linear-dodge": new LinearDodgeBlendFunction(),
"linear-light": new LinearLightBlendFunction(),
"luminosity": new LuminosityBlendFunction(),
"mix": new MixBlendFunction(),
"multiply": new MultiplyBlendFunction(),
"negation": new NegationBlendFunction(),
"overlay": new OverlayBlendFunction(),
"pin-light": new PinLightBlendFunction(),
"reflect": new ReflectBlendFunction(),
"saturation": new SaturationBlendFunction(),
"src": new SrcBlendFunction(),
"screen": new ScreenBlendFunction(),
"soft-light": new SoftLightBlendFunction(),
"subtract": new SubtractBlendFunction(),
"vivid-light": new VividLightBlendFunction()
};
1 change: 1 addition & 0 deletions manual/assets/js/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from "./SkyboxUtils.js";
export * from "./TweakpaneUtils.js";

export { alphaFog } from "./alphaFog.js";
export { blendFunctions } from "./blendFunctions.js";

0 comments on commit 1b7ffb0

Please sign in to comment.