Material normal map strength (GLDEFS)

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Material normal map strength (GLDEFS)

Post by Nash »

Simply a modifier keyword like Glossiness and SpecularLevel in the material block to multiply the normap map strength. Would be useful to increase depth without editing the texture.
dpJudas
 
 
Posts: 3037
Joined: Sat May 28, 2016 1:01 pm

Re: Material normal map strength (GLDEFS)

Post by dpJudas »

It is probably best to delay a change like this until after the vulkan2 branch has made it into master. There are things in uniform handling that could maybe benefit from backend consolidation and adding more uniforms right now would complicate this.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Material normal map strength (GLDEFS)

Post by Nash »

No problem, I can wait. :)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Material normal map strength (GLDEFS)

Post by Graf Zahl »

Before this gets merged back, at the very least I want to have that brightmap bug fixed that occurs after a level change. This one's a show stopper for me, the other glitches seem to mostly occur when wiping the screen, as if the frame buffer is read before it has been fully rendered.
dpJudas
 
 
Posts: 3037
Joined: Sat May 28, 2016 1:01 pm

Re: Material normal map strength (GLDEFS)

Post by dpJudas »

I agree. The branch is close but its not quite there yet. The brightmap bug is probably because of a deleted texture, as you suggested. The descriptor set gets cached so if one of the layer textures suddenly got replaced by another then that would explain the bug.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Material normal map strength (GLDEFS)

Post by Graf Zahl »

I'll check the precacher when I find time. My guess is that it doesn't properly reference-count secondary textures. Obviously a secondary texture still being referenced by an active material must not be evicted.
Post Reply

Return to “Feature Suggestions [GZDoom]”