-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Adding RenderPixelatedPass types. (#302)
* feat: Adding RenderPixelatedPass types. #301 * fix: Deleting PixelShader and replacing it in `other_files.txt`. #301 * fix: Adding contributor. #301 * fix: Fixing `other_files` RenderPixelatedPass declaration. #301 * fix: Adding type to fsquad. #301
- Loading branch information
1 parent
1a8fecb
commit db5181a
Showing
5 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
types/three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Scene, Camera, ShaderMaterial, Vector2, MeshNormalMaterial, WebGLRenderTarget } from '../../../src/Three'; | ||
|
||
import { Pass, FullScreenQuad } from './Pass'; | ||
|
||
export interface RenderPixelatedPassParameters { | ||
normalEdgeStrength?: number; | ||
depthEdgeStrength?: number; | ||
} | ||
|
||
export class RenderPixelatedPass extends Pass { | ||
constructor(pixelSize: number, scene: Scene, camera: Camera, options?: RenderPixelatedPassParameters); | ||
pixelSize: number; | ||
resolution: Vector2; | ||
renderResolution: Vector2; | ||
|
||
pixelatedMaterial: ShaderMaterial; | ||
normalMaterial: MeshNormalMaterial; | ||
|
||
fsQuad: FullScreenQuad; | ||
scene: Scene; | ||
camera: Camera; | ||
|
||
normalEdgeStrength: RenderPixelatedPassParameters['normalEdgeStrength']; | ||
depthEdgeStrength: RenderPixelatedPassParameters['depthEdgeStrength']; | ||
|
||
beautyRenderTarget: WebGLRenderTarget; | ||
normalRenderTarget: WebGLRenderTarget; | ||
} |
This file was deleted.
Oops, something went wrong.