STEP(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

πŸ’– step(3G) β€” bestie edition πŸ’–

okay so we're doing step(3G) today and honestly? she's a little icon. a tiny queen. a whole binary mood. let's get into it 🫢


✨ NAME ✨

step β€” generate a step function by comparing two values πŸ’…


✨ DECLARATION ✨

here's the receipts, exactly as written, no cap:

genType step(genType edge, genType x);

genType step(float edge, genType x);

genDType step(genDType edge, genDType x);

genDType step(double edge, genDType x);

four whole overloads. she's versatile like that. πŸ‘‘


✨ PARAMETERS ✨

  • edge β€” this one specifies the location of the edge of the step function. like, where the vibe flips. πŸ“
  • x β€” and this is the value that gets used to generate the step function. the main character being judged, fr fr. πŸŽ€

✨ DESCRIPTION ✨

so step generates a step function by comparing x to edge. that's the whole gig. 🌸

and for element i of the return value? 0.0 gets returned if x[i] < edge[i], and 1.0 gets returned otherwise. so it's giving "nope" or "yes ma'am", nothing in between. binary behaviour, iconic energy, periodt. πŸ’€βœ¨


✨ VERSION SUPPORT ✨

so here's the glow-up timeline for our girl across all the OpenGL Shading Language versions. the columns in the original were 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50 β€” and yes bestie, I'm listing every single one because we do NOT skip details in this house. 🌈

step (genType) β€” she's been here since day one and she never left:

  • 1.10 β€” βœ”
  • 1.20 β€” βœ”
  • 1.30 β€” βœ”
  • 1.40 β€” βœ”
  • 1.50 β€” βœ”
  • 3.30 β€” βœ”
  • 4.00 β€” βœ”
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

step (genDType) β€” she was late to the party but she ate when she arrived:

  • 1.10 β€” -
  • 1.20 β€” -
  • 1.30 β€” -
  • 1.40 β€” -
  • 1.50 β€” -
  • 3.30 β€” -
  • 4.00 β€” βœ”
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

ngl the genDType girlie really said "I'll show up at 4.00 and steal the whole show" and honestly? she did. πŸ˜­πŸ‘‘


✨ SEE ALSO ✨

go give these two a follow, they're in the same friend group:

  • mix()
  • smoothstep()

Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.


Copyright Β© 2011-2014 Khronos Group


okay bestie that's the whole page, we ate and left absolutely no crumbs. πŸ’–βœ¨

and for the cute sign-off: this one came from [FIXME: source], dated 01/03/2018, and it's filed under the manual name STEP(3G). mwah. πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from