pmndrs / drei-vanilla

🍦 drei-inspired helpers for threejs
https://pmndrs.github.io/drei-vanilla/
MIT License
448 stars 17 forks source link

fix: compat for r154 shader chunk renames #33

Closed alexzhang1030 closed 1 year ago

alexzhang1030 commented 1 year ago

Why

Threejs has been renamed encodings_fragment to colorspace_fragment since r154.

This will fix the warning:

THREE.WebGLRenderer: Shader chunk "encodings_fragment" has been deprecated. Use "colorspace_fragment" instead.

What

Check the version of three.js and choose the right shader chunks.

Checklist

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c7e36ee37460c08375e33e0c2c6c306bb4ac4068:

Sandbox Source
trusting-shockley-dmlxsx Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration
github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.9.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket: