S3D_PUSH_MATERIAL_A(3)

πŸ’– NAME πŸ’–

<s3d_push_material_a> β€” push material with alpha, bestie ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <s3d.h>

int s3d_push_material_a(int object, float amb_r, float amb_g,
                        float amb_b, float amb_a, float spec_r,
                        float spec_g, float spec_b, float spec_a,
                        float diff_r, float diff_g, float diff_b,
                        float diff_a);

🌸 DESCRIPTION 🌸

Okay so like. It's the exact same energy as s3d_push_material, no cap β€” but the color has an alpha value added on top. That's literally it, that's the whole glow-up. πŸ’…

Ambient, specular, diffuse β€” every single one of them gets its own _a now. Transparency? We have it. Sheer fabrics? We have it. The vibes are immaculate. πŸ¦‹

And listen β€” if you've got a lot of materials to push, do not sit here calling this thing in a loop like a menace. Use s3d_push_materials_a() instead, it's the whole point, it's giving efficiency, it's giving main character. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” Author of s3d 🫢


s3d Β· S3D_PUSH_MATERIAL_A(3) Β· k bye bestie, go push some materials with alpha, you ate πŸ’–βœ¨