shader error

    Feb 11 2019 | 11:13 am
    Hey Max users,
    I'm trying to translate a shader from shadertoy ( ) And I have these errors in Max 7.3.5 (see the pict). My question, can it be solved? If I download the last version of max maybe?
    Thank you very much and have a nice day :)

    • Feb 11 2019 | 12:08 pm
      Hi Guillame, first, this is a multipass shader, as you can see there is a buffer and then the main image in the "image" tab in Shadertoy. Did you see my tutorial about multipass shaders? Second, the bitwise operators like ^, >>, << etc. are not supported in glsl 1.2, which is the version Max uses. In the future this could change but not at the moment, unless you try to give it the version 1.3 next to the language spoecification, but I'm not sure this would work. Third, #define is not supported in glsl inside Max, you simply have to state those variables as normal ones, using a definition like vec2 R = iResolution;
      So, that's it, you can try to use different methods to replace the bitwise operators, this link should give you some hints:
      Good luck!