#blur background shader on mobile

1 messages · Page 1 of 1 (latest)

west stratus
#

Anyone familiar with shaders? I'm pretty new to them. I've got a very simple shader to blur the background when opening a menu, but it doesn't seem to work on mobile. On desktop this works, when running on android I just get a solid color. ```shader_type canvas_item;

uniform float amount: hint_range(0.0, 5.0) = 2.0;
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, filter_linear_mipmap;

void fragment() {
COLOR.rgb = texture(SCREEN_TEXTURE, SCREEN_UV, amount).rgb;
}```

I initially had textureLod in there so I tried switching it to texture but still no luck. Any ideas?

cinder quiver
#

You can test the mobile renderer from the top right of the editor.
It may be that the texture isn't being loaded in the mobile export.

#

Hard to know without the logs.

west stratus
#

I am using the mobile renderer on desktop, seems like something related to limitations on the mobile device

#

I'll see if I can access the logs on my phone