npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular-three-postprocessing

v2.12.0

Published

Postprocessing for Angular Three

Downloads

913

Readme

angular-three-postprocessing

This is the main entry point for post-processing effects in Angular Three. It provides a way to apply various visual effects to your 3D scene after it has been rendered. This library relies on maath, three-stdlib, and postprocessing as dependencies.

Installation

npm install angular-three-postprocessing three-stdlib maath postprocessing
# yarn add angular-three-postprocessing three-stdlib maath postprocessing
# pnpm add angular-three-postprocessing three-stdlib maath postprocessing

NgtpEffectComposer

This is a wrapper component that manages and applies post-processing effects to your scene. It takes content children of effects and applies them in the order they are provided.

Object Inputs (NgtpEffectComposerOptions)

| Property | Description | Default Value | | ------------------ | ------------------------------------------------------------------------------------------------- | ------------- | | enabled | Whether the effect composer is enabled. | true | | depthBuffer | Whether to use a depth buffer. | undefined | | enableNormalPass | Whether to enable the normal pass. This is only used for SSGI currently. | undefined | | stencilBuffer | Whether to use a stencil buffer. | undefined | | autoClear | Whether to automatically clear the output buffer before rendering. | true | | resolutionScale | A scaling factor for the resolution of the effect composer. | undefined | | multisampling | The number of samples to use for multisample anti-aliasing (MSAA). Set to 0 to disable MSAA. | 8 | | frameBufferType | The data type to use for the frame buffer. | HalfFloatType | | renderPriority | The render priority of the effect composer. | 1 | | camera | The camera to use for rendering. If not provided, the default camera from the store will be used. | undefined | | scene | The scene to render. If not provided, the default scene from the store will be used. | undefined |

<ngtp-effect-composer [options]="{ multisampling: 0, frameBufferType: FloatType, enableNormalPass: true }">
	<ngtp-bloom />
</ngtp-effect-composer>
```

NgtpEffectComposerApi

This is an interface that provides access to the underlying NgtpEffectComposer instance, as well as the camera and scene being used. It also includes references to the NormalPass and DepthDownsamplingPass if they are enabled

export interface NgtpEffectComposerApi {
	composer: EffectComposer;
	camera: Camera;
	scene: Scene;
	normalPass: NormalPass | null;
	downSamplingPass: DepthDownsamplingPass | null;
	resolutionScale?: number;
}

To retrieve the NgtpEffectComposerApi for components within <ngtp-effect-composer />, you can use the injectEffectComposerApi function.

Effects

TBD