mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Smoother ribbon
This commit is contained in:
parent
02be74b9c4
commit
72161acbd3
@ -24,7 +24,7 @@ static const char *stock_vertex_xmb_legacy = GLSL(
|
||||
|
||||
float xmb_noise2( vec3 x )
|
||||
{
|
||||
return cos((x.z*1.0)*2.0);
|
||||
return cos(x.z*4.0)*cos(x.z+time/10.0+x.x);
|
||||
}
|
||||
|
||||
void main()
|
||||
@ -33,16 +33,16 @@ static const char *stock_vertex_xmb_legacy = GLSL(
|
||||
vec3 v2 = v;
|
||||
vec3 v3 = v;
|
||||
|
||||
v.y = xmb_noise2(v2)/6.0;
|
||||
v.y = xmb_noise2(v2)/8.0;
|
||||
|
||||
v3.x = v3.x + time/5.0;
|
||||
v3.x = v3.x / 2.0;
|
||||
v3.x = v3.x / 4.0;
|
||||
|
||||
v3.z = v3.z + time/10.0;
|
||||
v3.y = v3.y + time/100.0;
|
||||
|
||||
v.z = v.z + noise(v3*7.0)/15.0;
|
||||
v.y = v.y + noise(v3*7.0)/15.0 + cos(v.x*2.0-time/5.0)/5.0 - 0.3;
|
||||
v.y = v.y + noise(v3*7.0)/15.0 + cos(v.x*2.0-time/2.0)/5.0 - 0.3;
|
||||
|
||||
gl_Position = vec4(v, 1.0);
|
||||
fragVertexEc = gl_Position.xyz;
|
||||
|
Loading…
x
Reference in New Issue
Block a user