diff --git a/CHANGELOG.md b/CHANGELOG.md index a6d2366..cacd34d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/examples/package-lock.json b/examples/package-lock.json index 202950e..e82eb75 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,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" } }, @@ -2087,9 +2087,9 @@ } }, "node_modules/three": { - "version": "0.150.1", - "resolved": "https://registry.npmjs.org/three/-/three-0.150.1.tgz", - "integrity": "sha512-5C1MqKUWaHYo13BX0Q64qcdwImgnnjSOFgBscOzAo8MYCzEtqfQqorEKMcajnA3FHy1yVlIe9AmaMQ0OQracNA==", + "version": "0.153.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.153.0.tgz", + "integrity": "sha512-OCP2/uQR6GcDpSLnJt/3a4mdS0kNWcbfUXIwLoEMgLzEUIVIYsSDwskpmOii/AkDM+BBwrl6+CKgrjX9+E2aWg==", "dev": true }, "node_modules/three-mesh-bvh": { @@ -3755,9 +3755,9 @@ "requires": {} }, "three": { - "version": "0.150.1", - "resolved": "https://registry.npmjs.org/three/-/three-0.150.1.tgz", - "integrity": "sha512-5C1MqKUWaHYo13BX0Q64qcdwImgnnjSOFgBscOzAo8MYCzEtqfQqorEKMcajnA3FHy1yVlIe9AmaMQ0OQracNA==", + "version": "0.153.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.153.0.tgz", + "integrity": "sha512-OCP2/uQR6GcDpSLnJt/3a4mdS0kNWcbfUXIwLoEMgLzEUIVIYsSDwskpmOii/AkDM+BBwrl6+CKgrjX9+E2aWg==", "dev": true }, "three-mesh-bvh": { diff --git a/examples/package.json b/examples/package.json index 396531d..bae64fd 100644 --- a/examples/package.json +++ b/examples/package.json @@ -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" } } diff --git a/examples/src/main.jsx b/examples/src/main.jsx index da4d093..062fbec 100644 --- a/examples/src/main.jsx +++ b/examples/src/main.jsx @@ -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; diff --git a/package-lock.json b/package-lock.json index d8ee706..a5dedb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openvdb", - "version": "0.2.25", + "version": "0.2.71", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openvdb", - "version": "0.2.25", + "version": "0.2.71", "license": "MIT", "devDependencies": { "@lopatnov/rollup-plugin-uglify": "^2.1.5", @@ -18,7 +18,7 @@ "stats.js": "^0.17.0" }, "peerDependencies": { - "three": "^0.150.0" + "three": "^0.153.0" } }, "node_modules/@jridgewell/resolve-uri": { @@ -978,9 +978,9 @@ } }, "node_modules/three": { - "version": "0.150.1", - "resolved": "https://registry.npmjs.org/three/-/three-0.150.1.tgz", - "integrity": "sha512-5C1MqKUWaHYo13BX0Q64qcdwImgnnjSOFgBscOzAo8MYCzEtqfQqorEKMcajnA3FHy1yVlIe9AmaMQ0OQracNA==", + "version": "0.153.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.153.0.tgz", + "integrity": "sha512-OCP2/uQR6GcDpSLnJt/3a4mdS0kNWcbfUXIwLoEMgLzEUIVIYsSDwskpmOii/AkDM+BBwrl6+CKgrjX9+E2aWg==", "peer": true }, "node_modules/to-regex-range": { @@ -1734,9 +1734,9 @@ } }, "three": { - "version": "0.150.1", - "resolved": "https://registry.npmjs.org/three/-/three-0.150.1.tgz", - "integrity": "sha512-5C1MqKUWaHYo13BX0Q64qcdwImgnnjSOFgBscOzAo8MYCzEtqfQqorEKMcajnA3FHy1yVlIe9AmaMQ0OQracNA==", + "version": "0.153.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.153.0.tgz", + "integrity": "sha512-OCP2/uQR6GcDpSLnJt/3a4mdS0kNWcbfUXIwLoEMgLzEUIVIYsSDwskpmOii/AkDM+BBwrl6+CKgrjX9+E2aWg==", "peer": true }, "to-regex-range": { diff --git a/package.json b/package.json index 4b338f6..a589316 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -41,7 +41,7 @@ ], "license": "MIT", "peerDependencies": { - "three": "^0.150.0" + "three": "^0.153.0" }, "devDependencies": { "@lopatnov/rollup-plugin-uglify": "^2.1.5", diff --git a/src/openvdb/three/VolumeBasicMaterial.js b/src/openvdb/three/VolumeBasicMaterial.js index c471eed..eec09db 100644 --- a/src/openvdb/three/VolumeBasicMaterial.js +++ b/src/openvdb/three/VolumeBasicMaterial.js @@ -675,7 +675,6 @@ export class VolumeBasicMaterial extends Three.MeshStandardMaterial { shader.fragmentShader = shader.fragmentShader .replace('#include ', `// NOTE Override UV calculations`) - .replace('#include ', `// NOTE Override UV calculations`) .replace('#include ', '') .replace( `#include `, @@ -714,7 +713,6 @@ export class VolumeBasicMaterial extends Three.MeshStandardMaterial { #include #include #include - #include ${shaderHelpers} `