S3D_PEP_LINE_NORMALS(3)
β¨ S3D_PEP_LINE_NORMALS β¨
okay so bestie, welcome to the s3d manual, section 3 π β today's main character is s3d_pep_line_normals, and she's literally the glow-up your lines have been begging for π
πΈ NAME πΈ
s3d_pep_line_normals β add normals to lines π¦
β SYNOPSIS β
#include <s3d.h>
int s3d_pep_line_normals(int object, const float *nbuf, uint16_t n);
π DESCRIPTION π
So what she does is: she adds normal information to lines, giving every single vertex of a line its own normal info. And likeβ¦ it makes lines somewhat nicer?? Yes. Lowkey a whole vibe upgrade. You'll especially need this when you're out here building wireframe models β that's the moment it really eats π₯
Now the important part, no cap: nbuf should contain n * 6 float values. Why six? Because for each vertex you give a normal vector (x,y,z) β that's three floats β and you've got 2 vertices for each line, so that's 6 float values per line in total. Math girlie behavior, we love to see it πβ¨
π AUTHOR π
Simon Wunderlich
- Author of
s3dπ«Ά
and that's the whole page, periodt π this was the s3d manual, S3D_PEP_LINE_NORMALS(3) β go forth and give your lines some normal main character energy, bestie ππ
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms