17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-08 04:08:38 +01:00
Files
maszyna/shaders
maj00r 89c4555e1e feat(render): matte and tinted copies of a material, the steel weathered or tinted as far as the userdata of its vertices says
Matte_Material() gives a copy of a material with its glossiness damped and its weathering on: the faces cut out of a polished surface, as the sides of a worn rail head, darken and lose the shine by the userdata of their vertices. Tinted_Material() gives a copy whose texture is tinted to a colour as far instead. Both are made once per material.

The weathering and the tint colour have a param slot of their own, param[3]: the shaders of the materials use all four components of param[2] among them (detail, parallax, water, the terrain placement), and light_common.glsl is included in all of them. MAX_PARAMS grows from 3 to 4, the model UBO by 16 bytes. Neither copy is made when another param of the shader lies on the components it would set.
2026-11-03 21:51:05 +01:00
..
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2026-09-14 21:11:08 +02:00
2020-02-21 22:50:52 +01:00
2020-11-18 22:18:28 +01:00
2020-11-18 22:18:28 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2026-09-19 17:09:58 +02:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2026-09-19 17:09:58 +02:00
2021-01-23 22:24:14 +01:00
2021-01-23 22:24:14 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2026-09-19 17:09:58 +02:00
2021-01-23 22:24:14 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2026-05-09 23:29:20 +02:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2020-02-21 22:50:52 +01:00
2026-05-09 23:29:20 +02:00
2026-05-09 23:29:20 +02:00