You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the vari operator minus (-) failed to understand how to subtract a floating point
number from a vec3. This should be legal GLSL code.
So, please add this to vari:
(vari.glsl::v-def-glsl-template-fun - (a b) "(~a - ~a)"
(vari.types:v-vec3 vari.types:v-real) 0:puret)
;; and one for + too.
(vari.glsl::v-def-glsl-template-fun + (a b) "(~a + ~a)"
(vari.types:v-vec3 vari.types:v-real) 0:puret)
Thank you!
The text was updated successfully, but these errors were encountered:
@psilord thanks, you are correct. I've been meaning to get this into glsl-spec for a while now so I have opened a ticket over here. When they are added there I can remove all the definitions inside varjo and this will all be much more consistant.
I have not addressed type constructors yet as glsl-spec's goal is to have fully enumerated definitions and there are too many permutations of valid arguments for matrix constructors for this to be a valid approach. I'll open another issue for the type constructors.
Feel free to close this if the changes suit your needs :)
Hello,
I noticed that the vari operator minus (-) failed to understand how to subtract a floating point
number from a vec3. This should be legal GLSL code.
So, please add this to vari:
Thank you!
The text was updated successfully, but these errors were encountered: