From d34b4c94f1533b5d3470af02805f454bda9a0f06 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Tue, 4 Jul 2023 14:59:57 -0400 Subject: [PATCH] Examples: Introduce OutputPass. (#512) * Examples: Introduce OutputPass. * Add to OTHER_FILES * Optional --- types/three/OTHER_FILES.txt | 2 ++ .../examples/jsm/postprocessing/OutputPass.d.ts | 13 +++++++++++++ types/three/examples/jsm/shaders/OutputShader.d.ts | 10 ++++++++++ 3 files changed, 25 insertions(+) create mode 100644 types/three/examples/jsm/postprocessing/OutputPass.d.ts create mode 100644 types/three/examples/jsm/shaders/OutputShader.d.ts diff --git a/types/three/OTHER_FILES.txt b/types/three/OTHER_FILES.txt index 8583e36ab..ff6f0f924 100644 --- a/types/three/OTHER_FILES.txt +++ b/types/three/OTHER_FILES.txt @@ -104,6 +104,7 @@ examples/jsm/postprocessing/HalftonePass.d.ts examples/jsm/postprocessing/LUTPass.d.ts examples/jsm/postprocessing/MaskPass.d.ts examples/jsm/postprocessing/OutlinePass.d.ts +examples/jsm/postprocessing/OutputPass.d.ts examples/jsm/postprocessing/RenderPass.d.ts examples/jsm/postprocessing/BloomPass.d.ts examples/jsm/postprocessing/SAOPass.d.ts @@ -145,6 +146,7 @@ examples/jsm/shaders/LuminosityHighPassShader.d.ts examples/jsm/shaders/LuminosityShader.d.ts examples/jsm/shaders/MirrorShader.d.ts examples/jsm/shaders/NormalMapShader.d.ts +examples/jsm/shaders/OutputShader.d.ts examples/jsm/shaders/RGBShiftShader.d.ts examples/jsm/shaders/SAOShader.d.ts examples/jsm/shaders/SepiaShader.d.ts diff --git a/types/three/examples/jsm/postprocessing/OutputPass.d.ts b/types/three/examples/jsm/postprocessing/OutputPass.d.ts new file mode 100644 index 000000000..fda8e1553 --- /dev/null +++ b/types/three/examples/jsm/postprocessing/OutputPass.d.ts @@ -0,0 +1,13 @@ +import { ShaderMaterial } from '../../../src/Three'; +import { ToneMapping } from '../../../src/constants'; + +import { Pass, FullScreenQuad } from './Pass'; + +export class OutputPass extends Pass { + constructor(toneMapping?: ToneMapping, toneMappingExposure?: number); + uniforms: object; + material: ShaderMaterial; + fsQuad: FullScreenQuad; + toneMapping: ToneMapping; + toneMappingExposure: number; +} diff --git a/types/three/examples/jsm/shaders/OutputShader.d.ts b/types/three/examples/jsm/shaders/OutputShader.d.ts new file mode 100644 index 000000000..a044f447e --- /dev/null +++ b/types/three/examples/jsm/shaders/OutputShader.d.ts @@ -0,0 +1,10 @@ +import { IUniform } from '../../../src/Three'; + +export const OutputShader: { + uniforms: { + tDiffuse: IUniform; + toneMappingExposure: IUniform; + }; + vertexShader: string; + fragmentShader: string; +};