Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Great package but a problem with the vertex lit

A topic by sBarz created 28 days ago Views: 75 Replies: 6
Viewing posts 1 to 6

Hello,

First of all, I want to commend you on the fantastic PSX retro package you've created—it integrates wonderfully with Unity's URP! However, I’ve encountered an issue with the Retro Vertex Lit shader.

When the camera distance exceeds 5-6 units, the material turns black. As I move closer to the light source, the vertex lighting returns to normal. Interestingly, this behavior doesn't occur with the Retro Lit shader.

I would greatly appreciate your guidance on resolving this issue.

Thank you for your time and support!

Developer

That is weird! Does this happen in a particular rendering path (forward, forward+ or deferred)? I'll try and find the root cause of the problem and get back to you with a fix!

Many thanks for the tipp with the rendering paths, yes it only happens with forward+.

Developer(+1)

Good to know, I've seen a couple of other problems with Forward+ so I'll focus on that and try and narrow it down!

I just logged in to report this and came across this post—glad to see it’s already being discussed! 

It seems to only happen with Forward+, as you've mentioned. Here's a video that might help:

Developer(+1)

Been working on this today and I believe I have fixed some, but not all, problems with lighting. The problem in efenigma's video should be fixed. The problem sBarz was having with Retro Vertex Lit might still be there.

Forward+ lighting should generally be more stable, but I fear I might not be able to get the Retro Vertex Lit shader on par with the regular Retro Lit shader because of the way the shader needs to poll the additional lights. I don't know if it's even possible to do what I want to do only in the vertex shader, but I'll keep experimenting.

Either way, I'm uploading an update as we speak. Hopefully that fixes some of the issues!

Thanks for the swift fix!