Ray Tracing shader

Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
ImStupid
Posts: 3
Joined: Tue May 26, 2026 1:06 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Ray Tracing shader

Post by ImStupid »

I did a Ray Tracing shader mainly vibe coding it but it works.
The shader doesnt need a modified engine to work, just a simple .pk3 file.
It is very laggy and im trying to optimize it as possible.
Here is an image: https://imgur.com/a/ogfbhBa
User avatar
Reisal
Posts: 1266
Joined: Fri Mar 13, 2009 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10 Home
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: New York State

Re: Ray Tracing shader

Post by Reisal »

Vibe coding is why it is performing poorly..
User avatar
Enjay
 
 
Posts: 27667
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Ray Tracing shader

Post by Enjay »

Do you know that for sure, or are you just making a statement about AI?
Either way, pointing to ImStupid to actual (or potential) constructive fixes/improvements would be more helpful than what you posted.
User avatar
edward850
Posts: 5917
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand

Re: Ray Tracing shader

Post by edward850 »

Enjay wrote: Fri Jul 17, 2026 4:41 am Do you know that for sure
Yes, and it's very much the problem with vibe coding anything. If you have no knowledge of what you have written, you will have no knowledge of how to fix its problems that it will create as demonstrated right now, because as a Markov chain it has no knowledge of anything it has actually done. By consequence, using AI is ultimately why it's poorly performing.
User avatar
Enjay
 
 
Posts: 27667
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Ray Tracing shader

Post by Enjay »

I'd contend that, without seeing the code, no one can say that for sure. Yes, vibe coding makes it much more likely, I'm not disputing that, but we don't know what ImStupid's code looks like or what the AI suggested. I'm also not suggesting that learning how to do it yourself without the crutch of AI isn't better.

However, simply assuming that the code is bad because it has AI involvement and posting "Vibe coding is why it is performing poorly" seems as much a "political" statement as anything. If it's not, then at best it's merely a guess/assumption and doesn't offer up any tangible help.

But the real problem is, it's essentially a "git gud n00b" post. That's not very friendly and we can do better than that.


@ImStupid, if you do want help with your shader, then posting it for people to look at is pretty much essential. If you are happy to continue on your own, that's cool too.
ImStupid
Posts: 3
Joined: Tue May 26, 2026 1:06 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: Ray Tracing shader

Post by ImStupid »

edward850 wrote:
> [quote=Enjay post_id=1267300 time=1784284879 user_id=16]
> Do you know that for sure
> [/quote]
> Yes, and it's very much the problem with vibe coding anything. If you have
> no knowledge of what you have written, you will have no knowledge of how to
> fix its problems that it will create as demonstrated right now, because as
> a Markov chain it has no knowledge of anything it has actually done. By
> consequence, using AI is ultimately why it's poorly performing.

Actually the code uses many different optimization, obviuosly AI could have introduced some bugs and errors that lowered perfomance, but the code itself is optimized pretty well. The performance issues are mostly caused by UZDoom lacking many shader features. Im still working on it and trying to find further optimizations to make it playable at decent framerates.
Last edited by ImStupid on Sun Jul 19, 2026 12:43 pm, edited 1 time in total.
ImStupid
Posts: 3
Joined: Tue May 26, 2026 1:06 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: Ray Tracing shader

Post by ImStupid »

Enjay wrote:
> @ImStupid, if you do want help with your shader, then posting it for people
> to look at is pretty much essential. If you are happy to continue on your
> own, that's cool too.

I would like to try my best on my own for now. When the project becomes more stable and is no longer a complete mess to work on, I will post it, see what people suggest, and keep updating and fixing the shader/mod.

Return to “Shaders”