mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 13:35:26 +01:00
8fc0d1f7a2
The e3d files converted before the power of a light got a slot of its own hold it in the slot of the former diffuse multiplier. Only the nvrenderer multiplied the diffuse colour by it; everything else left the colour as the t3d gave it. The loader divided the colour by the power in every such file, so a light point whose colour wasn't multiplied came out too bright when its power was below 1: the lamps of the desk of the EP09 (104ec_kab_a.e3d, HotspotPower 0.1, so 0.001 in the slot) a thousand times. The colour is now divided only where it can have been multiplied, that is where none of its components is above the power. With a power of 1 or more a multiplied colour and an unmultiplied one can't be told apart, and the colour is divided as before. Behaviour change: in the old e3d files whose colour wasn't multiplied, the light points with a power below 1 shine as bright as their t3d says. No change to the game data is needed.