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
Length, yes it could probably say vector or scalar in both places. And, the formula is still correct: sqrt(x*x), which I'm sure many vendors could substitute abs(x) for.
Distance: which part is not right? It's different in never claiming to only support vectors, right?
Normalize: Like Length, could more clearly say scalar or vector in both places, but again the vector formula degenerates to the scalar formula, so there should not be an issue regarding that.
The extension instructions in question are:
Length
- The documentation states:However, this is contradicted by the next lines, which imply that the result may also be a vector:
Presumably, implementors implement the scalar version of this as
abs(x)
? This could be clarified.Distance
- Same thing. Presumably this is implemented asabs(a - b)
?Normalize
- Also has contradictory docs:From my testing on shadertoy,
normalize(scalar)
is justx / abs(x)
?The text was updated successfully, but these errors were encountered: