The shader compiler on mac may be more picky than the one on windows. Please post the log that contains the error, there should be a line number to the offending code.
I was able to revisit this problem and i narrowed the problem down to this issue. ‘+’ does not operate on ‘vec3’ and ‘vec4’. That makes sense, but I don’t get this error on windows. the vec4 is the time variable from the shadertoy tutorial. Any thoughts? thanks for the help.
Different platforms have different shader compilers. Some are more forgiving while some are not as forgiving, which can let a shader run on e.g. Windows but not on MacOS.
Anyway, it sounds strange that any compiler would accept adding a vec3 and vec4. What would the expected resulting type be?
The resulting type expected would be a vec3. Im not a shader expert by any means. I just ran through the defold tutorial then started to convert some shadertoy examples over to defold to learn from. I guess I expected that the defold shader was platform agnostic. I converted vec4 time to a vec3 and got it to work (sort of) its not an exact match. Thanks for the help, ill keep plugging away at it.