Elektrine lite

← Feed

@yuki@nyanya.gay

Post #4330068

2026-06-18 15:05 UTC

i watched tsoding's video where he implements shader code with no external libs by generating .ppm files byte by byte and thought it'd be fun to spend the day doing the same in zig. it's probably my favorite code related video now due to how much fun (and genuinely useful) knowledge is condensed into 10 minutes <3 i did NOT get close to getting the shader right LOL but i still got really pretty results!!! my fault is probably in not understanding glsl very well (let alone obfuscated glsl) you can tell by the last gif i was just messing around with the variables :P

Replies (2)

  • @dynamyc@nyanya.gay 2026-06-21 22:33

    @yuki@nyanya.gay that is really heckin cool actually oh mah gosh

    Open ##4330080

  • @yuki@nyanya.gay 2026-06-18 15:07

    all the code is here, alongside gifs at every step that i got cool looking renders: https://git.gay/25kittens/ilkae that final render is only ~140ish lines of zig with no external libs!! i will def be messing around with this method again

    Open ##4330081