I'm using my own 3d weapon models and for the longest time I had this issue with wrong PBR colors.
In the attached screenshot you can see that the PBR shader makes the intense blue light RED unlike the specular shader that works properly.
With trial and error I was able to mitigate this by removing the kD multiplier from the material_pbr.fp (gzdoom.pk3), apparently that coeff causes the red tint in this particular case (on other models the color was different, usually on metallic parts).
//vec3 ambient = (kD * diffuse) * ao;
vec3 ambient = diffuse * ao; // <-- my fix
Here you can download the example mod to try it. Pistol is PBR(wrong) and fist is Specular(ok)
https://drive.google.com/file/d/1Ukrw9B ... drive_link
Wrong PBR texture colors in 3d weapon models
Moderator: GZDoom Developers
Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
-
- Posts: 1
- Joined: Wed Nov 20, 2024 10:07 am
- Operating System Version (Optional): win11
- Graphics Processor: nVidia with Vulkan support
Wrong PBR texture colors in 3d weapon models
You do not have the required permissions to view the files attached to this post.