Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Can we support ~== for floating point comparison? #100

@davesmith00000

Description

@davesmith00000

It isn't GLSL, but it would be handy for simple colour value comparisons and such...

Usage:

if 1.0f ~== vec2(1.0f).x then ??? else ???

Which expands to something like:

if abs(1.0f - vec2(1.0f).x) < 0.001f then ??? else ???

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions