Ambient Light shader: alThreshold property doesn't work

  • Lightboom
  • Topic Author
More
5 years 1 month ago #1 by Lightboom Ambient Light shader: alThreshold property doesn't work was created by Lightboom
Link to shader in question: pastebin.com/Pjqg0unK

Good day. I'm using an Ambient Light shader, but one of the properties that's supposed to control how bright sources that emit ambient light have to be doesn't work (or rather, changing it doesn't change anything).
I'm not good with shaders myself but, I think that there might be problems in lines like this (there're 2 lines where this property is used):

hgb = float4(max(hgb.rgb - alThreshold, 0.0), hgb.a);

So, color floats are between 0 and 1, right? So subtracting anything greater then 1 hardly makes sense unless you want to get weird results. And especially here, as it's just always return float4(0, hgb.a). Or so I think.

Anyway, I would be grateful if someone can fix it.
Just in case, if the problem is in the game - I'm using it with The Outer Worlds.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.