Skip to content

Commit

Permalink
Adjust for r153
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurczyk committed Jun 17, 2023
1 parent 9680370 commit e46ff13
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 24 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# v0.2.15
# v0.3.x

Core:

- Three.js r153 color spaces compatibility
- Three.js r151 UV channels compatibility

# v0.2.x

Core:

Expand Down
14 changes: 7 additions & 7 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"react-three-fiber": "^6.0.13",
"simple-dropzone": "^0.8.1",
"styled-components": "^5.3.6",
"three": "^0.150.1",
"three": "^0.153.0",
"vite": "^3.1.0"
}
}
3 changes: 1 addition & 2 deletions examples/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ const init = () => {

scene.background = new Three.Color(0x598eff);

renderer.outputEncoding = Three.sRGBEncoding;
// renderer.useLegacyLights = false;
renderer.outputColorSpace = Three.SRGBColorSpace
renderer.physicallyCorrectLights = true;
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.shadowMap.enabled = true;
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openvdb",
"version": "0.2.71",
"version": "0.3.0",
"description": "This project indirectly ports OpenVDB file format and tools to JavaScript, TypeScript, and Node. Specific 3D library implementations can be found in sub-directories.",
"main": "./index.js",
"exports": {
Expand Down Expand Up @@ -41,7 +41,7 @@
],
"license": "MIT",
"peerDependencies": {
"three": "^0.150.0"
"three": "^0.153.0"
},
"devDependencies": {
"@lopatnov/rollup-plugin-uglify": "^2.1.5",
Expand Down
2 changes: 0 additions & 2 deletions src/openvdb/three/VolumeBasicMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,6 @@ export class VolumeBasicMaterial extends Three.MeshStandardMaterial {

shader.fragmentShader = shader.fragmentShader
.replace('#include <uv_pars_fragment>', `// NOTE Override UV calculations`)
.replace('#include <uv2_pars_fragment>', `// NOTE Override UV calculations`)
.replace('#include <packing>', '')
.replace(
`#include <common>`,
Expand Down Expand Up @@ -714,7 +713,6 @@ export class VolumeBasicMaterial extends Three.MeshStandardMaterial {
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <uv2_pars_fragment>
${shaderHelpers}
`
Expand Down

0 comments on commit e46ff13

Please sign in to comment.