Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

620 bytes added, 08:15, 17 September 2018
no edit summary
== UI texture changes ==
TODOWe changed the blending of UI textures to be gamma correct. As result alpha transitions in UI textures (e.g. accessory icons, custom loading screens) or alpha values specified in UI screen definitions did change. When creating transparent textures, you should configure your graphics editor to use Gamma value of 1.0 to get the composition to behave as in the game.
We changed While there is no fully automated way to modify the blending of UI textures to be gamma correct. As get exactly the same result various modded UI textures (eas before, the [http://download.geurotrucksimulator2. accessory icons, custom loading screens) or colors specified in PML definitions might appear incorrectcom/tga_adjust_for_gamma_1. When creating transparent textures, you should configure your graphics editor zip attached Perl script] can be used to use Gamma value 1.0 adjust alpha channel to get keep the composition behave as in appearance similar based on assumption that the gameblend is done over middle-gray background based on following expression. TODO: conversion script
TODO<pre>S .. source sRGB color in UI texturea .. source alpha in UI textureD .. background sRGB color, we assume middle gray #808080b .. recomputed alpha OLD = S * a + D * (1 - a)NEW = sRGB(rgb(S) * b + rgb(D) * (1 - b)) b = (rgb(OLD) - rgb(D)) / (rgb(S) - rgb(D))</pre>
== Economy system changes ==

Navigation menu