Fixed the fill on sprites, added some config button components, started work on option menu
This commit is contained in:
@@ -29,9 +29,10 @@ void main()
|
||||
vec4 color_result = Color * diffuseTexel;
|
||||
|
||||
float pos = ((P * vec4(Input.Position, 1)).y + 1.0)/2.0;
|
||||
float fillResult = floor(pos*FillPercentage);
|
||||
|
||||
color_result = FillColor*diffuseTexel.a*fillResult + color_result*(1-fillResult);
|
||||
if(pos <= FillPercentage) {
|
||||
color_result = FillColor*diffuseTexel.a;
|
||||
}
|
||||
|
||||
sceneColor = vec4(color_result.xyz, clamp(color_result.a, 0, 1));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user