shuurghul Posted February 12, 2017 Share Posted February 12, 2017 Hello. I'm trying to make fake shadows by creating a semi-transparent planes. But there are little problem. I want to prevent blending of shadows, here's a picture for clarity: I see only one way - use stencil buffer to write mask where shadows already rendered. But I have no idea how to implement this in bjs. Maybe someone meet the same problem? Thanks. And sorry for my English. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 13, 2017 Share Posted February 13, 2017 Hello! Unfortunately I'm afraid you are right I was trying to think about a blending mode that could make it (http://www.nutty.ca/articles/blend_modes/) You may try some just in case (how to setup blend mode in bjs:http://doc.babylonjs.com/tutorials/how_to_use_blend_modes) Quote Link to comment Share on other sites More sharing options...
Nabroski Posted February 14, 2017 Share Posted February 14, 2017 @shuurghul this is interesting. keep us posted. maybe i can also investigate. when you stuck, share a playground. 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.