NokiMo
x4fab
x4fab

patreon


New shader for distant emissives

Have you noticed that annoying flicker for distant lamp posts? This new shader should help to solve it, by dimming emissiveness with distance and instead replacing it by a glowing billboard, growing with distance (I think GTA 5 does something similar). No need to change any models, everything is handled by a config. Interesting side effect is that now, some tracks at night look almost magical. :)

New shader for distant emissives New shader for distant emissives New shader for distant emissives New shader for distant emissives

Comments

I was wondering what caused this issue in VR. This issue becomes a much bigger problem if you completely disable shadows - also. Very painful difference in left and right eye. Is there a fix for that as well?

Sure! There are still some things to solve (need to add distant fade, forgot about it), but you can already use it by adding those lines in extension config (now it could be in trackfolder/extension/ext_config.ini with live reload in there too): [INCLUDE] INCLUDE = common/materials_track.ini [Material_DistantEmissive] Meshes = list of meshes, separated via comma, with ? for any symbols ; you can have several of those sections [Material_DistantEmissive] Materials = and, if needed, list materials instead of meshes Here are a couple of examples: https://github.com/ac-custom-shaders-patch/acc-extension-config/blob/master/config/tracks/ks_brands_hatch.ini#L857 https://github.com/ac-custom-shaders-patch/acc-extension-config/blob/master/config/tracks/feldberg.ini#L1603 And here are all the parameters available at the moment, with comments: https://github.com/ac-custom-shaders-patch/acc-extension-config/blob/master/config/tracks/common/materials_track.ini#L32 You can change them during the race too, but if you would add new meshes or materials in there, you would need to restart it. Thank you! :)

Ilja Jusupov aka x4fab

Ilja, you may remember me discussing this with you in private message awhile back for my track that I was building. This has always bothered me. How would we implement this in the config? Thank you so much for working on this.

Hopefully, yes! Going to release it today, hopefully, if nothing will suddenly break, and we’ll see :)

Ilja Jusupov aka x4fab

Thanks! I don’t think it would affect FPS noticeably, all those glares are just two triangle billboards, generated where there are emissive objects, during loading, and shader is pretty simple as well

Ilja Jusupov aka x4fab

Will this solve the issue of lights looking kind of disorienting in VR at times, because of the flickering not being in sync between the left and the right eye?

Great look! Does it affect FPS?


Related Creators