Skip to content

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 26, 2025

Only vector float types are allowed for these functions, not scalar floats.

Only vector float types are allowed for these functions, not scalar floats.
@Calinou Calinou added bug area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:shaders cherrypick:4.4 labels Aug 26, 2025
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a number of cases that are wrong here as well, for example all takes bvec, not genBType, and I'm sure there's plenty of other cases

@@ -1988,7 +1990,7 @@ Comparison function descriptions

.. rst-class:: classref-method

|vec_bool_type| **lessThan**\ (\ |vec_type| x, |vec_type| y) :ref:`🔗<shader_func_lessThan>`
|vec_bool_type| **lessThan**\ (\ |vec_type_no_scalar| x, |vec_type_no_scalar| y) :ref:`🔗<shader_func_lessThan>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be updated above in 1962-1973

Also this returns bvec which is strictly bvec2, bvec3, bvec4

+--------------------+-----------------------------------------------------+--------------------------+
| vec_uint_type | uint, uvec2, uvec3, or uvec4 | genUType |
+--------------------+-----------------------------------------------------+--------------------------+
| vec_bool_type | bool, bvec2, bvec3, or bvec4 | genBType |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three also need non-gen types, for the methods that take/return bvec/ivec/uvec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug cherrypick:4.4 topic:shaders
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gdshader greaterThanEqual not accepting float values
2 participants