Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSL: Color Space revision #1216

Merged
merged 7 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 4 additions & 40 deletions examples-testing/changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9702,7 +9702,7 @@ index efd09cfc..e4832209 100644
canvas.width = tileWidth;
context.drawImage(image, tileWidth * i, 0, tileWidth, tileWidth, 0, 0, tileWidth, tileWidth);
diff --git a/examples-testing/examples/webgl_panorama_equirectangular.ts b/examples-testing/examples/webgl_panorama_equirectangular.ts
index 55274522..850cc6aa 100644
index 40796f6e..6d631dee 100644
--- a/examples-testing/examples/webgl_panorama_equirectangular.ts
+++ b/examples-testing/examples/webgl_panorama_equirectangular.ts
@@ -1,6 +1,6 @@
Expand All @@ -9722,43 +9722,7 @@ index 55274522..850cc6aa 100644

camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 1100);

@@ -48,15 +48,15 @@ function init() {

document.addEventListener('dragover', function (event) {
event.preventDefault();
- event.dataTransfer.dropEffect = 'copy';
+ event.dataTransfer!.dropEffect = 'copy';
});

document.addEventListener('dragenter', function () {
- document.body.style.opacity = 0.5;
+ document.body.style.opacity = '0.5';
});

document.addEventListener('dragleave', function () {
- document.body.style.opacity = 1;
+ document.body.style.opacity = '1';
});

document.addEventListener('drop', function (event) {
@@ -64,12 +64,12 @@ function init() {

const reader = new FileReader();
reader.addEventListener('load', function (event) {
- material.map.image.src = event.target.result;
- material.map.needsUpdate = true;
+ material.map!.image.src = event.target!.result;
+ material.map!.needsUpdate = true;
});
- reader.readAsDataURL(event.dataTransfer.files[0]);
+ reader.readAsDataURL(event.dataTransfer!.files[0]);

- document.body.style.opacity = 1;
+ document.body.style.opacity = '1';
});

//
@@ -84,7 +84,7 @@ function onWindowResize() {
@@ -54,7 +54,7 @@ function onWindowResize() {
renderer.setSize(window.innerWidth, window.innerHeight);
}

Expand All @@ -9767,7 +9731,7 @@ index 55274522..850cc6aa 100644
if (event.isPrimary === false) return;

isUserInteracting = true;
@@ -99,14 +99,14 @@ function onPointerDown(event) {
@@ -69,14 +69,14 @@ function onPointerDown(event) {
document.addEventListener('pointerup', onPointerUp);
}

Expand All @@ -9784,7 +9748,7 @@ index 55274522..850cc6aa 100644
if (event.isPrimary === false) return;

isUserInteracting = false;
@@ -115,7 +115,7 @@ function onPointerUp() {
@@ -85,7 +85,7 @@ function onPointerUp() {
document.removeEventListener('pointerup', onPointerUp);
}

Expand Down
Loading
Loading