|
@ -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); |
|
|