More problems with SFM (Patreon)
Content
I was already ready to post a new build of the map from the ranch, but when I decided to check the performance of the map in sfm, I was very unpleasantly surprised. The fact is that the Refract shader is broken in sfm, this is such a shader with which you can create a translucent texture with a refraction effect.
But if just refraction works in the normal mode, then in the mode of mixing two textures, sfm almost completely stops displaying such a texture.
On the basis of blending, you can make a mask that will sort of hide the edge of the model, so that, like in my case, you can make a beautiful wave effect, and not a sharp edge, but it seems that such an effect will only be available in garry's mod. At the moment I can't fix it.
To test my theory, I created a test model and tested it in four different games. These are gmod, sdk 2013 multiplayer, half-life 2 and sfm.
In gmod and sdk 2013, the effect works as correctly as possible, the bottom of the impromptu waterfall is smoothly hidden closer to the ground. In hl2 it's already worse, there is a slight blur visible from below, but mixing somehow works. And the last SFM, you yourself see everything.
P.S. - in team fortress 2 it works completely correctly, but due to the fact that sfm has not been updated since 2014, there are no new functions and features in it.