Skip to content

Commit 6a298ac

Browse files
committed
Upd texture colorspace in example
1 parent 733c40f commit 6a298ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/img-nodes/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
graphData={gData}
3434
nodeThreeObject={({ img }) => {
3535
const imgTexture = new THREE.TextureLoader().load(`./imgs/${img}`);
36+
imgTexture.colorSpace = THREE.SRGBColorSpace;
3637
const material = new THREE.SpriteMaterial({ map: imgTexture });
3738
const sprite = new THREE.Sprite(material);
3839
sprite.scale.set(12, 12);

0 commit comments

Comments
 (0)