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

15 lines
243 B
GLSL

/*
contributors: Inigo Quiles
description: onion operation of one SDFs
use: <float> opOnion( in <float> d, in <float> h )
*/
#ifndef FNC_OPONION
#define FNC_OPONION
float opOnion( in float d, in float h ) {
return abs(d)-h;
}
#endif