mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Update Bflyt.frag
This commit is contained in:
parent
314d1e7c20
commit
db04c5102a
1 changed files with 3 additions and 2 deletions
|
@ -34,9 +34,10 @@ void main()
|
|||
{
|
||||
// Convert to sRGB.
|
||||
vec3 whiteColorSRGB = pow(whiteColor.rgb, vec3(1.0 / gamma));
|
||||
vec3 blackColorSRGB = pow(blackColor.rgb, vec3(1.0 / gamma));
|
||||
|
||||
vec3 whiteInterpolation = whiteColorSRGB.rgb * textureMap0.rgb;
|
||||
vec3 blackInterpolation = (vec3(1) - textureMap0.rgb) * blackColor.rgb;
|
||||
vec3 whiteInterpolation = whiteColor.rgb * textureMap0.rgb;
|
||||
vec3 blackInterpolation = (vec3(1) - textureMap0.rgb) * blackColorSRGB.rgb;
|
||||
|
||||
|
||||
vec3 colorBlend = whiteInterpolation + blackInterpolation;
|
||||
|
|
Loading…
Reference in a new issue