Unity 2020.3.34 LTS shader warnings
Shader warning in 'Shapes/Rect Lighten': integer modulus may be much slower, try using uints if possible. at Core.cginc(131) (on gles) Shader warning in 'Shapes/Rect Lighten': integer modulus may be much slower, try using uints if possible. at Core.cginc(133) (on gles)
Shader warning in 'Shapes/Triangle Lighten': integer modulus may be much slower, try using uints if possible. at Core.cginc(228) (on gles)
Looks like the numerical constants just need to be marked as unsigned.
For example:
uint quadrantPrev = (quadrant+3u)%4u;
Reporting a bug? please specify Unity version:
2020.3.34
Reporting a bug? please specify Shapes version:
4.1.3
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
The uint issue is still occurring in Unity 2022.3.9f1, using Shapes 4.3.1, with the Triangle Core and Rect Core .cginc files.
I *think* to trigger these warnings, you have to set Quality settings higher than Unity's default for mobile. In my case they appear at "Very High" Quality setting when building for Android.