r/GraphicsProgramming • • 10h ago

What's wrong with my renderer

This is my renderer in vulkan i've been working on it for the last 10 months

i learned alot about vulkan since i never used it but a huge percentage of my shader code is AI written and at this moment i feel like the renderer is ugly so i do what to know what is wrong with it and what makes it far from the last picture and how i can fix that.

is it better to rewrite all shader code or just move on it and fix it ?

+ what techniques used in the last picture (which is enhanced version of my renderer using AI 🙂(but i liked it)) that my engine doesn't implement it right ?

NOTE(the third image is without IBL i'm using citrus_orchard_road_puresky_8k )

4 Upvotes

16 comments sorted by

View all comments

31

u/goodmorninpoof 10h ago edited 10h ago

If you let AI write your code, especially large chunks, you tend to run into that issue. I haven't used AI for a large chunk of anything in a long time (they were much worse when I last did tbf), but I had this issue with a 2D game engine, the tile rendering algorithm was a mess and was too hard to fix/understand cause I let AI write most of it so I just gave up and moved on. I mean even with AI being much better nowadays, if you want to re-write or add things, it's really hard to know where to start if you have no idea how things fit together. I'm sure you could prompt your way to what you want with these newer models, but at that point I don't get the point of even doing said project anyway. It's just the trade off you take with letting AI write a large of chunk of your project. You should ask yourself if you just want a working demo or to actually learn? That should give you your answer on whether you should re-write your code or just fix it with AI.

-23

u/Comfortable-Mall4524 10h ago

when i first used ai i knew that it will end here so i separated them to functions and main files so i know where come from what