18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 13:26:08 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
jerrrrycho
aecc73e893 fix(render): antialias alpha tested edges with multisampling (eu07/maszyna#449)
The sides of the trackbed (and grass, fences, foliage) are cut out of their
textures by the alpha test, which keeps or drops whole pixels, so their edges
stayed jagged at any multisampling level; only geometry edges got smoothed.

With multisampling on, the alpha tested materials of the opaque colour pass
now draw with GL_SAMPLE_ALPHA_TO_COVERAGE. Their shaders do the alpha test
with alpha_test_fail() of glsl_common and write as alpha the coverage of the
test edge: the alpha sharpened around the opacity threshold to go from 0 to 1
over about a pixel, so the edge keeps the place it had and gets the samples
it covers. The renderer turns alpha to coverage on per material, only for
shaders which use the helper and only in the opaque pass with a positive
opacity, so translucent, water, terrain and the other shaders are unchanged.
Without multisampling the shaders work as before.
2026-11-08 01:34:35 +01:00
468ea1d747 Add shader diffuse multiply 2026-09-19 16:56:39 +02:00
c88a9b870c Improved specular and glosiness 2026-06-27 14:41:10 +02:00
7923f7d857 improve shaders once more 2026-04-26 00:49:45 +02:00
76effe72df shaders correction for burnt colors 2026-04-26 00:18:02 +02:00
bc0e4a9e62 Specgloss shaders improvements + experimental SSAO (debug only) 2026-04-21 00:25:29 +02:00
antonisauren
d1ecbdc8ff Sim (#11)
* Wheels animation distance changed to 200*D*LODbias

* Fixed spelling error in event syntax; old one remains for compatibility.

* Spelling error left in log text

* Zamiana metalic na floata z wazonym efektem.

# Conflicts:
#	shaders/light_common.glsl

* Detail normalmap shaders @Jan21

* Explicit type conversion

* Leftover metalic as bool

* Syntax error

* Normalmap sampling inside ParallaxMapping function
2021-01-23 22:24:14 +01:00
tmj-fstate
54b648fb5b shader reflection color calculation tweak 2020-08-12 20:57:57 +02:00
stele
c4945d3f32 Fixed "param_glossiness" missing from final gloss formula in materials utilising gloss maps. 2020-07-16 18:05:37 +02:00
stele
879f3bb360 Specular/glossines/metalic mapping added to all fragment shaders 2020-02-23 10:36:15 +01:00