but0n / Ashes

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

SpecularGlossiness model is not displayed correctly #38

Open cx20 opened 4 years ago

cx20 commented 4 years ago

I tried to display SpecGlossVsMetalRough.gltf using the latest version of Ashes.

However, the SpecularGlossiness model does not seem to be displayed correctly. image

but0n commented 4 years ago

This is a known issue, Ashes doesn't support any extensions yet.

but0n commented 4 years ago

FYI: You can use HDR environment textures in the latest version. Usage:

let assetRoot = 'https://but0n.github.io/Ashes/
let specEnv = await Asset.loadCubemap(assetRoot + 'res/envmap/helipad/', 'hdr');
let diffEnv = await Asset.loadCubemap(assetRoot + 'res/envmap/helipad_diff/', 'hdr');
let gltfroot = scene.appendChild(await Asset.loadGLTF(gltf, screen, specEnv, diffEnv));