fuckingtech/public/assets/glsl/lygia/math/equal.msl
Elias Rhouzlane bf76c6b086 fix: code
2025-04-06 17:23:52 +02:00

17 lines
No EOL
612 B
Text

/*
contributors: Patricio Gonzalez Vivo, Anton Marini
description: equal polyfill
use: <bool2|bool3|bool4> equal(<float2|float3|float4>, <float2|float3|float4>)
license:
- Copyright (c) 2021 Patricio Gonzalez Vivo under Prosperity License - https://prosperitylicense.com/versions/3.0.0
- Copyright (c) 2021 Patricio Gonzalez Vivo under Patron License - https://lygia.xyz/license
*/
#ifndef FNC_EQUAL
#define FNC_EQUAL
inline bool2 equal(float2 x, float2 y) { return x == y; }
inline bool3 equal(float3 x, float3 y) { return x == y; }
inline bool4 equal(float4 x, float4 y) { return x == y; }
#endif