I'm having some trouble with shaders I've written working fine in the edior and when exported to desktop, but rendering nothing at all when exported for Html5. I came across a webpost saying that this could happen if you were using gles3 shaders instead of gles2 (or visa versa. I guess it depends on if your project is configured for gles2 or gles3).
I was wondering how I specify what version of shaders I need to use? The Godot shader language does not seem to specify which shader version to use. My shaders all look something like this:
shader_type canvas_item;
render_mode blend_mix;
uniform int cols = 10;
uniform int rows = 10;
void vertex() {
}
void fragment()
{
vec4 albedo = texture(TEXTURE, UV.xy * vec2(float(cols), float(rows)));
COLOR = albedo;
}