but0n / Ashes

WebGL2.0 3D Engine - Global Illumination - RayTracing
https://codepen.io/but0n/pen/jddYoX
MIT License
328 stars 16 forks source link

Triangle.gltf does not displayed #3

Closed cx20 closed 5 years ago

cx20 commented 5 years ago

I tried to display Triangle.gltf with Ashes. However, an error was output to the console and it was not displayed.

Ashes v0.0.16 + Triangle.gltf result:

ashes.main.js:5270 Uncaught (in promise) TypeError: Cannot read property 'map' of undefined
    at Function.<anonymous> (ashes.main.js:5270)
    at Generator.next (<anonymous>)
    at fulfilled (ashes.main.js:860)

I think that it is probably failing to display about models that do not have textures.

but0n commented 5 years ago

Thanks! I'll fix it soon.

cx20 commented 5 years ago

I confirmed that Triangle.gltf will be displayed. Ashes v0.0.17 + Triangle.gltf result: image

but0n commented 5 years ago

Thanks!