diff options
author | Sven Göthel <[email protected]> | 2024-01-09 02:55:58 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-09 02:55:58 +0100 |
commit | c87e89959e40ee8411cccc16fe0a5708f54a6c9f (patch) | |
tree | c79f5bfa5fb32fae061393f9a7b6ef3e53066dce /newt.iml | |
parent | 4db23616aca2f191b2685311dc676fdac739338a (diff) |
Graph GLSL functions.glsl: Complete overload vec2 and vec3 variants; Fix 'and'/'or' semantic (swapped); Add EPSILON in clip_coord(..) and add is_inside(..) function
Complete overload vec2 and vec3 variants
Fix 'and'/'or' semantic (swapped)
- 'and' uses multiplication, i.e. all arguments must be > 0 (ideally 1)
- 'or' uses addition, i.e. only one arguments must be > 0 (ideally 1)
- both uses clamp [0..1]
Add EPSILON in clip_coord(..)
- Only 'coord > high+EPSILON' is outside
Add is_inside(..) function
- Similar to clip_coord(..) but returns float 0 or 1
instead of selecting color.
Diffstat (limited to 'newt.iml')
0 files changed, 0 insertions, 0 deletions