Browse Source

texture color spac updated

master
Cailean Finn 4 months ago
parent
commit
40a1efc522
  1. 2
      public/js/main.js

2
public/js/main.js

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

Loading…
Cancel
Save