This website requires JavaScript.
Issues
Task board
Repositories
Sign In
eu07
/
maszyna
Watch
17
Star
0
Fork
0
You've already forked maszyna
mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced
2026-11-03 02:43:02 +01:00
Code
Issues
157
Wiki
Activity
Files
a717c8a0c159823005641b5db2c8d16beeb91e43
maszyna
/
shaders
/
mat_parallax_specgloss.frag
maj00r
3d6a465570
fix(shaders): parallax mapping of the opengl33 materials is shared by the four parallax shaders in parallax.glsl and samples its depth with the gradients of the surface instead of letting a loop of varying length pick the mip level, picks the number of layers by the angle of view alone and refines the hit with a binary search instead of one linear step, so stones near the camera no longer show combs of layer slices; it fades out between 60 and 100 m instead of stopping at a hard line and fades out at grazing angles, and the simple offset without extra effects no longer divides by an unbounded cosine of the view
2026-10-14 14:23:52 +02:00
2.3 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink