Hersir Posted June 21, 2018 Share Posted June 21, 2018 Hi, I tried to make glow outline for plane , similar to HighlightLayer but I have texture that have transparent pixels so HighlightLayer wound work. Tried to make shader that draws outline, was ok with rectangle but have 1 texture that is not rectangle. Anyone have some suggestions how to draw glow outline around texture? As i found most of solutions have multi pass render. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted June 21, 2018 Share Posted June 21, 2018 Pinging @Sebavan Quote Link to comment Share on other sites More sharing options...
Sebavan Posted June 21, 2018 Share Posted June 21, 2018 Most of the techniques I used rely on depth or stencil and we usually disable depth testing for transparency. Having said that if the transparency writes to depth (basically it becomes only a sorting issue) what we are doing today could work with minor updates to the effect layer. Basically we could add support for transparent meshes as long as they are writing to the depth and stencil buffer so as long as there is no overlap this would potentially work. Not sure I am clear enough though ? Quote Link to comment Share on other sites More sharing options...
Hersir Posted June 25, 2018 Author Share Posted June 25, 2018 @Sebavan ok found workaround for this, as my meshes are planes only, I created solution based on texture map, basically I created texture that encodes alphas for glow and background in colour channels, than read data from there and color it in shader. Works well for plane based meshes as they are really 2d. Sebavan and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted June 25, 2018 Share Posted June 25, 2018 Works fine for plane GG ! 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.