![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Ace of the Deep
![]() Join Date: Apr 2005
Posts: 1,142
Downloads: 111
Uploads: 0
|
![]()
// 6. horizont haze
float hazeMask = smoothstep(1, 0, saturate(In.eyeDir.w * g_skyHazeHeight.x - g_skyHazeHeight.y)*2); color = lerp(color, g_skyHazeColor, hazeMask); THANKS! ![]() |
![]() |
![]() |
![]() |
#2 |
Pacific Aces Dev Team
![]() |
![]()
which value?
__________________
-- Vapor-ware is always easier to sell because there's no limit what it can do! |
![]() |
![]() |
![]() |
#3 |
Ace of the Deep
![]() Join Date: Apr 2005
Posts: 1,227
Downloads: 19
Uploads: 0
|
![]()
@Seeadler
I think that W_clear want's to decrease/increase the fog value (colour maybe?) to get rid of the line seen in the horizont in the other thread ![]() ![]() ![]() |
![]() |
![]() |
![]() |
#4 | |
Sonar Guy
![]() Join Date: Dec 2007
Posts: 376
Downloads: 187
Uploads: 21
|
![]() Quote:
works well with my mod as I get dark nights with redused HDRMaxLumScale. ![]()
__________________
SH ![]() |
|
![]() |
![]() |
![]() |
#5 |
Ace of the Deep
![]() Join Date: Apr 2005
Posts: 1,142
Downloads: 111
Uploads: 0
|
![]() |
![]() |
![]() |
![]() |
#6 | |
The Old Man
![]() Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
|
![]() Quote:
It's linear interpolation. Without seeing the specifics of their implemenation, and i can only guess. the first function call is for finding out how much the color will change, and the second call is doing the actual color interpolation. 1. smoothstep: The first two arguements define the Max/Min of the step ( 1 & 0 would mean between full color and no color) and the last part acts as a "weight" for the "step". 2. Lerp: Is the actual interpolation. It's changing "color" towards "g_skyHazeColor" by "hazeMask" amount... and then returning it back into the "color" variable. So if you need to change how the interpolation is done between the sky and the fog... you'd probably want to alter the way "hazemask" gets computed. And that would be done by adjusting the weight (3rd portion) of the smoothstep function call. Probalby leave the saturation part alone and adjust the multiplier to the right of it some. Or If you want less overall haze color, you could probably turn it down by change the 1 in smoothstep to like 0.8 or 0.5 or something. Just fiddle with it. Last edited by gutted; 03-24-10 at 03:05 PM. |
|
![]() |
![]() |
![]() |
#7 |
Sonar Guy
![]() Join Date: Dec 2007
Posts: 376
Downloads: 187
Uploads: 21
|
color banding
I made skytop, bottom and fog colors same, this way I got rid of most
color banding in the sky, only sun, moon and horizon haze make some. Good enough for me. ![]() Also I made underwater up, down and fog colors same and got rid of underwater color banding for good. ![]() Released it with SH5EnvMod V1.2.
__________________
SH ![]() |
![]() |
![]() |
![]() |
|
|