My render does draw anything if i use render.enable_material(“shadow”)
I try to change material fragment program to sprite.fp. It does not help. Vertex program correctly work for another material.
I have heard about certain browsers having problems with non-power-of-two textures… Could you try setting a static size of your render target textures to something like 1024x1024 or similar?
In render i add material with name shadow. If this materiaI is screen.material draw work in html. If i copy screen.material and use copied value render does not work. I push all code to github, because i do not understand why it happened. If someone help me, it will be awesome.In desktop build render work allways. https://github.com/d954mas/defold_html5_problem
Well, when testing it now, I get loads of these in the webbrowser console (Chrome): “INVALID_OPERATION: uniform4fv: location is not from current program”
So apparently something is a bit off.
Also, I noticed that you are not using the “shadow.material” that you think you are (you have 2). So, in the screen/shadow.material, you probably want to add another texture (as your previous picture suggests), and the shadow.material doesn’t use shadow.fp. But even after fixing that, I get the same error in the console. Unfortunately, I don’t have more time to spend right now (off for christmas vacation)
You are right. Now there is a error in console. When i watch yesterday there is no error for shadow/shadow.material. I have 2 shadow.material because i try to find why rendering not work in browser,and try different shaders and constants.So to not broke my shadow i make a copy) Thx, and happy christmas