Skip to content

Commit

Permalink
alpha dawg
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsterner committed Aug 5, 2024
1 parent 2dafdc7 commit 0444b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ uniform float TunnelElongation;
uniform float Width;
uniform float Height;
uniform float RotationSpeed;

uniform float Alpha;

uniform vec4 ColorModulator;
uniform float FogStart;
Expand Down Expand Up @@ -93,5 +93,6 @@ void main() {
float fadeFactor = 1.0 - smoothstep(0.45, 0.5, distToCenter); // Adjusted fading range
color *= fadeFactor;

color *= Alpha;
fragColor = vec4(color, 0.5) * (.75 - distToCenter);
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
{ "name": "TunnelElongation", "type": "float", "count": 1, "values": [ 0.25 ] },
{ "name": "Width", "type": "float", "count": 1, "values": [ 128.0 ] },
{ "name": "Height", "type": "float", "count": 1, "values": [ 128.0 ] },
{ "name": "RotationSpeed", "type": "float", "count": 1, "values": [ 0.0 ] }
{ "name": "RotationSpeed", "type": "float", "count": 1, "values": [ 0.0 ] },
{ "name": "Alpha", "type": "float", "count": 1, "values": [ 1.0 ] }
]
}

0 comments on commit 0444b83

Please sign in to comment.