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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lijuhong1981/tsl.postprocessing

v1.1.1

Published

一个基于[threejs](https://github.com/mrdoob/three.js)最新的tsl与[RenderPipeline](https://threejs.org/docs/#RenderPipeline)开发的后处理控制器。

Readme

tslPostProcessing

一个基于threejs最新的tsl与RenderPipeline开发的后处理控制器。

功能

1、整合了GTAO(Ground Truth Ambient Occlusion)、SSGI(Screen Space Global Illumination)、SSR(Screen Space Reflections)、SSS(Screen Space Shadows)、降噪(Denoise)、泛光(Bloom)、景深(Depth Of Field)、轮廓(Outline)以及FXAA(快速近似抗锯齿)、SMAA(增强型多重采样抗锯齿)、SSAA(超采样抗锯齿)、TAAU(Temporal Anti-Aliasing Upsampling)、TRAA(Temporal Reprojection Anti-Aliasing)等多种抗锯齿(Anti-Aliasing)后处理特效,并根据所启用的特效自动配置在渲染管线中的渲染顺序;

2、开箱即用,对tsl的API进行了封装,简化后处理节点API的调用;

3、优化了GTAO,解决了对Points、Line、Sprite等对象效果异常的问题;

4、对OulineNode添加了颜色高亮效果;

安装

npm install @lijuhong1981/tsl.postprocessing

使用

import { WebGPURenderer, Scene, PerspectiveCamera, DirectionalLight } from "three/webgpu";
import { PostProcessingLibrary, AntiAliasingMethod } from "@lijuhong1981/tsl.postprocessing";

const renderer = new WebGPURenderer();
const scene = new Scene();
const camera = new PerspectiveCamera();
const mainLight = new DirectionalLight();
scene.add(mainLight);
const postProcessor = new PostProcessingLibrary(
    renderer, //渲染器,必填
    scene, //场景,必填
    camera, //相机,必填
    mainLight //主光源,可不传,未设置时SSS无法生效
);
// postProcessor.enabled = true; //是否开启后处理,默认true
postProcessor.aoPass.enabled = true; //开启AO,默认false
// postProcessor.ssgiPass.enabled = true; //开启SSGI,默认false
// postProcessor.ssrPass.enabled = true; //开启SSR,默认false
postProcessor.bloomPass.enabled = true; //开启Bloom,默认false
// postProcessor.denoisePass.enabled = true; //开启降噪,默认false,可配合AO/SSGI/SSR/SSS关闭时域滤波时使用
// postProcessor.dofPass.enabled = true; //开启景深,默认false
// postProcessor.dofPass.focusDistance = 5; //调节景深焦点距离
// postProcessor.aaPass.enabled = true; //开启抗锯齿,如果WebGPURenderer开启了antialias则默认false,否则默认true
// postProcessor.aaPass.method = AntiAliasingMethod.SMAA; //使用SMAA,默认FXAA
// postProcessor.outlinePass.selectedObjects = [...]; //指定选中对象
...
const onAnimate = () => {
    window.requestAnimationFrame(onAnimate);
    ...
    postProcessor.render(); //执行渲染
};
...
onAnimate();

API文档

在线文档(GitHub Pages):https://lijuhong1981.github.io/tslPostProcessing/

本地预览仍然可以直接打开 ./docs/index.html