Sebavan Posted February 2, 2018 Share Posted February 2, 2018 Hello, It has been a while I did not introduced a new feature in BJS so as the higlight layer was famous, let s introduce the glow layer: http://www.babylonjs.com/demos/glowlayer/ Documentation is available here: https://doc.babylonjs.com/how_to/glow_layer adam, Thierry Mil, Vorion and 13 others 13 3 Quote Link to comment Share on other sites More sharing options...
jerome Posted February 3, 2018 Share Posted February 3, 2018 Waaaow "Darth, come here, we're baking something you for. ... What's your favorite colour ?" Quote Link to comment Share on other sites More sharing options...
Thierry Mil Posted February 3, 2018 Share Posted February 3, 2018 This is wonderfull to make all the les (fake) lights of a scene glow. I find the renderingof the glow looks nice . And seems very easy to program. Thanks Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 3, 2018 Share Posted February 3, 2018 nice dear @Sebavan Quote Link to comment Share on other sites More sharing options...
meteoritool Posted February 3, 2018 Share Posted February 3, 2018 Glowsome !!!!! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 3, 2018 Share Posted February 3, 2018 Hi guys. This is cool. But but but... is animation allowed? Time variable? I know little about shaders, but in the old "lava" and "fire" materials... they were animated. How do they do that? A few months ago, I was trying to put sparkly particles on dynamicTextures... and failed. I was trying real-time blit-animating the context2d imageBuffer... and... well... I failed due to incompetence. My objective was to make sparkly/glittery fonts and backgrounds... for GUI controls/containers. Wouldn't it be cool... if both of your "layers" features... worked on GUI controls/containers? Glow-fonts! Anyway, there would be various "characteristics" to animate. Glow density, intensity, color, and a guy COULD send sinusoidal "phasings" across the glow. Like... waves of glow... or stripes of glow... or even "clouds" of glow... swirls... all animated. Can do? (droooool) Is there any chance we could "borrow" the animation from fire and lava post-processes/shaders, and use them in either of your layer features? Are layers animatable and would we find good use for that? Should pre-made animations be 'add-ons' to certain shaders (or maybe only those that utilize time parameter)? Plug'n'play animations? What are the chances of developing a "glittery glow" and a glittery highlightLayer? I'm a sparkle junkie. I was whacked in the head with faerie dust... when I accidentally woke-up while the tooth faerie was reaching for a tooth... under my pillow... when I was age 3. I got sparkled. heh. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted February 4, 2018 Author Share Posted February 4, 2018 Animation is not part of the shader but you can animate the glow intensity. About sparkles, it would be more efficient to rely on particles as it does not require post processing to look glowy. Wingnut 1 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.