jak-project/common/custom_data
water111 af9a8dd7f1
[graphics] Fix issue with envmap math (#3862)
A few people in the discord noticed that the shiny part of the subrails
looks different between PS2 and OpenGOAL. I looked into this and found a
bug where the length of the normals was half what they should have been.
Earlier this didn't matter because I normalized them in the shader, but
at some point I removed that when refactoring other parts.

I'm not completely convinced we have the intensity/tint multiplier
working correctly, but this is at least a step in the right direction.


https://github.com/user-attachments/assets/ee754011-08ac-4bee-94b2-d0e114b952ec



https://github.com/user-attachments/assets/1079635a-0b92-4965-a991-972ef6048ddf

For fun, here's this fix, plus a random doubling of the envmap effect
strength:


https://github.com/user-attachments/assets/726e7b8d-c020-42cf-a594-cad590c0ef7d

---------

Co-authored-by: water111 <awaterford1111445@gmail.com>
2025-02-16 16:58:11 -05:00
..
TFrag3Data.cpp [graphics] Fix issue with envmap math (#3862) 2025-02-16 16:58:11 -05:00
Tfrag3Data.h [jak3] Support texture anim in TIE (#3734) 2024-10-26 15:47:34 -04:00
pack_helpers.cpp logs: replace every `fmt::print` with a `lg` call instead (#1368) 2022-10-01 11:58:36 -04:00
pack_helpers.h Initial implementation of custom level tool (#1482) 2022-06-19 20:44:07 -04:00