瀏覽代碼

Update readme, bump version.

master
Palash Bansal 2 年之前
父節點
當前提交
356654cc49
沒有連結到貢獻者的電子郵件帳戶。
共有 4 個檔案被更改,包括 38 行新增10 行删除
  1. 28
    0
      README.md
  2. 8
    8
      package-lock.json
  3. 1
    1
      package.json
  4. 1
    1
      src/viewer/version.ts

+ 28
- 0
README.md 查看文件



The plugin automatically tracks `setDirty()` function calls in objects, materials and the scene. It can be triggerred by calling `setDirty` on any material or object in the scene. Check the [example](https://threepipe.org/examples/#frame-fade-plugin/) for a demo. This can be disabled by options in the plugin. The plugin automatically tracks `setDirty()` function calls in objects, materials and the scene. It can be triggerred by calling `setDirty` on any material or object in the scene. Check the [example](https://threepipe.org/examples/#frame-fade-plugin/) for a demo. This can be disabled by options in the plugin.


## VignettePlugin

[//]: # (todo: image)

Example: https://threepipe.org/examples/#vignette-plugin/

Source Code: [src/plugins/postprocessing/VignettePlugin.ts](./src/plugins/postprocessing/VignettePlugin.ts)

API Reference: [VignettePlugin](https://threepipe.org/docs/classes/VignettePlugin.html)

VignettePlugin adds a post-processing material extension to the ScreenPass in render manager
that applies a vignette effect to the final render. The parameters `power` and `color` can be changed to customize the effect.

```typescript
import {ThreeViewer, VignettePlugin} from 'threepipe'

const viewer = new ThreeViewer({...})

const vignettePlugin = viewer.addPluginSync(VignettePlugin)

// Change the vignette color
vignettePlugin.power = 1
vignettePlugin.color = new Color(0.5, 0, 0)

// or
// vignettePlugin.color.set('#ff0000'); vignettePlugin.setDirty() // Call setDirty to tell the plugin that color has changed
```

## HDRiGroundPlugin ## HDRiGroundPlugin


[//]: # (todo: image) [//]: # (todo: image)

+ 8
- 8
package-lock.json 查看文件

{ {
"name": "threepipe", "name": "threepipe",
"version": "0.0.16",
"version": "0.0.17",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "threepipe", "name": "threepipe",
"version": "0.0.16",
"version": "0.0.17",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.152.1017/package.tgz", "@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.152.1017/package.tgz",
"rollup-plugin-license": "^3.0.1", "rollup-plugin-license": "^3.0.1",
"rollup-plugin-postcss": "^4.0.2", "rollup-plugin-postcss": "^4.0.2",
"stats.js": "^0.17.0", "stats.js": "^0.17.0",
"three": "https://github.com/repalash/three.js-modded/releases/download/v0.152.2015/package.tgz",
"three": "https://github.com/repalash/three.js-modded/releases/download/v0.152.2018/package.tgz",
"tslib": "^2.5.0", "tslib": "^2.5.0",
"typedoc": "^0.24.7", "typedoc": "^0.24.7",
"typescript": "^5.0.4", "typescript": "^5.0.4",
} }
}, },
"node_modules/three": { "node_modules/three": {
"version": "0.152.2015",
"resolved": "https://github.com/repalash/three.js-modded/releases/download/v0.152.2015/package.tgz",
"integrity": "sha512-qON7KCzBCV2cWH4uOg6rfSJw5otIRk3JK7i8VtRq9K0KWaD/c3aW2Uz/WRqOJDxW/ENNrKhb171nqlToJIkgcg==",
"version": "0.152.2018",
"resolved": "https://github.com/repalash/three.js-modded/releases/download/v0.152.2018/package.tgz",
"integrity": "sha512-88iZkx5sx/DQpfjB50omkR8b0tJ3UY+X9R1RpnpzVXZntDeUCsxTorscxAPX9MMmoE+Xfa9SFFxbVEOdm14YMQ==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
} }
}, },
"three": { "three": {
"version": "https://github.com/repalash/three.js-modded/releases/download/v0.152.2015/package.tgz",
"integrity": "sha512-qON7KCzBCV2cWH4uOg6rfSJw5otIRk3JK7i8VtRq9K0KWaD/c3aW2Uz/WRqOJDxW/ENNrKhb171nqlToJIkgcg==",
"version": "https://github.com/repalash/three.js-modded/releases/download/v0.152.2018/package.tgz",
"integrity": "sha512-88iZkx5sx/DQpfjB50omkR8b0tJ3UY+X9R1RpnpzVXZntDeUCsxTorscxAPX9MMmoE+Xfa9SFFxbVEOdm14YMQ==",
"dev": true "dev": true
}, },
"through": { "through": {

+ 1
- 1
package.json 查看文件

{ {
"name": "threepipe", "name": "threepipe",
"version": "0.0.16",
"version": "0.0.17",
"description": "A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.", "description": "A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.",
"main": "src/index.ts", "main": "src/index.ts",
"module": "dist/index.mjs", "module": "dist/index.mjs",

+ 1
- 1
src/viewer/version.ts 查看文件

export const VERSION = '0.0.16'
export const VERSION = '0.0.17'

Loading…
取消
儲存