vendredi 27 août 2021

Compare 3 glsl vectors

I made a example code in glsl and I'am using if(diffuse.rgb > vec3(1)) and it gives a "cannot compare vector or matrices" error. and if I do this if(diffuse.rgb == vec3(1)) it runs without error, thanks.

Aucun commentaire:

Enregistrer un commentaire