-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertex manipulation in shader not affecting light shafts #14
Comments
It might work if you duplicate your vertex animation in a shadow caster pass as described here. |
It's actually a surface shader that works fine with regular shadows, On Monday, 5 September 2016, Abe Vos [email protected] wrote:
web: daterre.com http://daterre.com/ |
The current implementation uses Depth.shader to render the shadowmaps. You would indeed have to duplicate any vertex animation you do in that shader as well. Alternatively change LightShafts to use your surface shader for rendering the shadowmap, but make sure the depth that is being output is linear, like in Depth.shader. |
Got it. I'll give it a shot and update you. Thanks! |
Hi, I'm trying to use light shafts with a mesh that is animated via vertex shader, and the shafts don't seem to be conforming to the changing mesh. Is this expected? If so, could you offer any pointers as to how I could go about getting this to work? Thanks!
The text was updated successfully, but these errors were encountered: