Gerente Posted April 29, 2018 Share Posted April 29, 2018 Hello, anyone has any example about a fog of war around a specific point? thanks. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 29, 2018 Share Posted April 29, 2018 There's no example, However I can just say that its possible through multiple layers. http://pixijs.io/examples/#/layers/lighting.js Layer for background, layer for lights, layer for characters, then multiply characters by lights, something like that Quote Link to comment Share on other sites More sharing options...
jonforum Posted April 29, 2018 Share Posted April 29, 2018 Like ivan say upper, with normal if you paint in pure green color . the result will give you a fog of war like. I got this unexpected result, and I was told myself that it could be used for a king of fog in a project! In this example all what you see in green are black in the render. If you add light to screen, the zone will appears see the rock on in the render are totally black, and if you add light , it will appear. with light to left corner screen Quote Link to comment Share on other sites More sharing options...
Gerente Posted April 30, 2018 Author Share Posted April 30, 2018 thank you, ill try that and let you know 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.