带蒙皮/动画模型的ThreeJS SSAO着色器 [英] ThreeJS SSAO Shader w/ Skinned/Animated Models

查看:528
本文介绍了带蒙皮/动画模型的ThreeJS SSAO着色器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ThreeJS随附的SSAO着色器是否与蒙皮/动画模型兼容?我已经在这里的沙箱中实现了SSAO着色器:

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

奇怪的是,您会注意到一种所有怪物移动时周围都是白色的外壳。这是SSAO效果,不会随着蒙皮动画而更新。

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.

推荐答案

问题已解决!

只需根据以下示例代码使用THREE.DepthPassPlugin():

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

http://alteredqualia.com/三个/examples/webgl_postprocessing_ssao.html

您可以通过使用ctrl-s将html保存到您自己的计算机上来获取代码。

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

这篇关于带蒙皮/动画模型的ThreeJS SSAO着色器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆