Skip to content

Commit

Permalink
Examples: Introduce OutputPass. (#512)
Browse files Browse the repository at this point in the history
* Examples: Introduce OutputPass.

* Add to OTHER_FILES

* Optional
  • Loading branch information
Methuselah96 authored Jul 4, 2023
1 parent 3321286 commit d34b4c9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/three/OTHER_FILES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions types/three/examples/jsm/postprocessing/OutputPass.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}
10 changes: 10 additions & 0 deletions types/three/examples/jsm/shaders/OutputShader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { IUniform } from '../../../src/Three';

export const OutputShader: {
uniforms: {
tDiffuse: IUniform;
toneMappingExposure: IUniform;
};
vertexShader: string;
fragmentShader: string;
};

0 comments on commit d34b4c9

Please sign in to comment.