bonne planche de sprite
This commit is contained in:
@ -14,8 +14,14 @@ void main()
|
||||
{ //Rectangle plus large que haut
|
||||
vec4 colorTemp = color;
|
||||
float ouverture = 0.8f;
|
||||
// Effet "tube"
|
||||
float lum = -pow(fragCoord.y + height/2f, 2f) * 5f /height + ouverture;
|
||||
colorTemp.xyz *= lum;
|
||||
|
||||
// Effet flash sur la surface
|
||||
float flash = abs(sin(time)) + 0.4f;
|
||||
colorTemp.xyz *= flash;
|
||||
|
||||
if (leftToRight){
|
||||
if (fill > fragCoord.x){
|
||||
FragColor = colorTemp;
|
||||
|
Reference in New Issue
Block a user