Pixels Commander Posted October 18, 2018 Share Posted October 18, 2018 We have an animated shader material representing illuminating background. Then this background we d like to apply god rays. Feels like shader material should produce texture at some level so should be possible but not sure how this is better to approach. Any hints on implementation? Our animated shader background: How we would like it to behave: Quote Link to comment Share on other sites More sharing options...
bghgary Posted October 18, 2018 Share Posted October 18, 2018 I'm told this might help: https://doc.babylonjs.com/how_to/using_the_volumetric_lightscattering_post-process Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted October 18, 2018 Share Posted October 18, 2018 i am on that Pixels Commander and bghgary 2 Quote Link to comment Share on other sites More sharing options...
Pixels Commander Posted October 19, 2018 Author Share Posted October 19, 2018 14 hours ago, bghgary said: I'm told this might help: https://doc.babylonjs.com/how_to/using_the_volumetric_lightscattering_post-process This is a very basic article which does not give any insights on how to achieve that shadermaterial is a source for godrays. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2018 Share Posted October 19, 2018 Pinging @Luaacro Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted October 19, 2018 Share Posted October 19, 2018 Hey @Pixels Commander, Reading the god rays post-process: all obstacles for rays are black (also works with alpha test textures) and the rays source simply takes the attached material of the source mesh to render it. If you set the source mesh (property ".mesh") to be your background it is not working? Quote Link to comment Share on other sites More sharing options...
Pixels Commander Posted October 22, 2018 Author Share Posted October 22, 2018 Thanks guys, actually we found a problem in other part of our game which was blocking us from having this. Now works fine. julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted October 23, 2018 Share Posted October 23, 2018 Cool! Hope that the post-process result will fit your needs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.