On windows game with this shader starts and shader didn’t work.
But on mac it show an error: WARNING:GRAPHICS: ERROR: 0:10: Incompatible types in initialization (and no available implicit conversion)
We could do a better job warning for stuff that’s not supported by some target GL version. Feel free to comment on the issues you linked to, or add your own
This is problem!
Now we are developing a set of new shaders, and this error made me lose the evening. More precisely - no mention of the error. I have been writing all kind of shaders for 7 years already and it was thought that finally I had gone mad.
What OS and version is the device/machine running?
Also, if you have details on graphics card, drivers and OpenGL (supported) version that would also be really helpful.
Oh, just to try something really crazy (if you are able to start the game/engine ofc);
Could you try modifying one of the shaders you are having issues with and hot-reload it once (ctrl/cmd+r), does it print any errors?
On my PC with GTX1050 and win10 i haven’t errors when build
When i run apk on my android 7.0 with MediaTek MT6737T & Mali-T720 MP2 i have black screen without errors.
When i build on my macbook air 2015, defold report errors screenshot
this is wrong and very complicates the development!
I’m not sure how we detect and surface the error, but I assume it is based on the error we get from the driver or similar. And if your Windows driver happily accepts the shader then you won’t get an error. And it seems like your Macbook is more stringent and detects the problem, and we can thus pick it up. I’m fairly sure that if you check logcat on your Android device you’d see an error as well.
In any case, fix the error mentioned in your screenshot and the shader should work on all devices. Remember to keep to the Open GL ES 2.0 specification to ensure compatibility on all platforms.
The best way for me to pick up the errors on windows was by using the ‘adb logcat’ to debug the Android device directly, most of the errors just appear to be simple conversions which are easily fixed. This is my experience of it.