You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

angular-three-postprocessing

Package Overview
Dependencies
Maintainers
0
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-three-postprocessing

Postprocessing for Angular Three

3.7.2
latest
Source
npmnpm
Version published
Weekly downloads
194
44.78%
Maintainers
0
Weekly downloads
 
Created
Source

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)

PropertyDescriptionDefault Value
enabledWhether the effect composer is enabled.true
depthBufferWhether to use a depth buffer.undefined
enableNormalPassWhether to enable the normal pass. This is only used for SSGI currently.undefined
stencilBufferWhether to use a stencil buffer.undefined
autoClearWhether to automatically clear the output buffer before rendering.true
resolutionScaleA scaling factor for the resolution of the effect composer.undefined
multisamplingThe number of samples to use for multisample anti-aliasing (MSAA). Set to 0 to disable MSAA.8
frameBufferTypeThe data type to use for the frame buffer.HalfFloatType
renderPriorityThe render priority of the effect composer.1
cameraThe camera to use for rendering. If not provided, the default camera from the store will be used.undefined
sceneThe 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

Keywords

angular

FAQs

Package last updated on 01 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts