15 lines
221 B
GLSL
15 lines
221 B
GLSL
/*
|
|
contributors: Inigo Quiles
|
|
description: round SDFs
|
|
use: <float> opRound( in <float> d, <float> h )
|
|
*/
|
|
|
|
#ifndef FNC_OPROUND
|
|
#define FNC_OPROUND
|
|
|
|
float opRound( in float d, in float h ) {
|
|
return d - h;
|
|
}
|
|
|
|
#endif
|
|
|