pissang / clay-viewer

3D model viewer with high quality rendering and glTF2.0/GLB export
https://pissang.github.io/clay-viewer/editor/
BSD 3-Clause "New" or "Revised" License
771 stars 97 forks source link

ssao的BlurShader中疑似bug #93

Closed shawn0326 closed 6 years ago

shawn0326 commented 6 years ago

ssao.glsl 中: w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0)); 是否是 w *= (1.0 - smoothstep(0.0, 1.0, abs(centerDepth - d) / depthRange)); 的误写,感觉下一种写法更容易理解?

另外,上一种写法,在chrome 的 --headless 模式下,会导致部分渲染错误。

pissang commented 6 years ago

@shawn0326 是的这里写错了,谢谢提醒:)