문제

Is the SSAO shader included with ThreeJS compatible with skinned/animated models? I've implemented the SSAO shader in my sandbox here:

http://www.titanpass.com/game_development/my_first_game/index.html

Oddly, you will notice a kind of white shell around all the monsters as they move. This is the SSAO effect that is not updating with the skinned animations.

Any suggestions or insight on this issue would be greatly appreciated.

도움이 되었습니까?

해결책

Problem solved!

Just had to use THREE.DepthPassPlugin() based on the following example code:

http://alteredqualia.com/three/examples/webgl_postprocessing_ssao.html

You can get the code by using ctrl-s to save the html to your own computer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top