texture color spac updated

This commit is contained in:
2024-07-01 11:28:01 +01:00
parent 6fae4d6b3e
commit 40a1efc522

View File

@@ -183,6 +183,8 @@ function init() {
for (let i = 0; i < jsonData.length; i++) { for (let i = 0; i < jsonData.length; i++) {
let temp_txt = loader.load('../images/' + jsonData[i]['image']); let temp_txt = loader.load('../images/' + jsonData[i]['image']);
temp_txt.minFilter = THREE.NearestFilter; temp_txt.minFilter = THREE.NearestFilter;
temp_txt.magFilter = THREE.NearestFilter;
temp_txt.colorSpace = THREE.SRGBColorSpace;
let title = jsonData[i]['name'] let title = jsonData[i]['name']
let filename = jsonData[i]['filename'] let filename = jsonData[i]['filename']
let article = new Article(temp_txt, title, filename.replace(/\.[^/.]+$/, ""), i); let article = new Article(temp_txt, title, filename.replace(/\.[^/.]+$/, ""), i);