mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
Merge pull request #5853 from fr500/master
fix the shader and the label
This commit is contained in:
commit
da233c89c9
@ -15,6 +15,8 @@ static const char* stock_fragment_xmb_snowflake = GLSL(
|
||||
return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
|
||||
}
|
||||
|
||||
float rand(float x){ return rand(vec2(x,1.0));}
|
||||
|
||||
float snow(vec3 pos, vec2 uv, float o)
|
||||
{
|
||||
vec2 d = (pos.xy - uv);
|
||||
@ -35,9 +37,9 @@ static const char* stock_fragment_xmb_snowflake = GLSL(
|
||||
float col(vec2 c)
|
||||
{
|
||||
float color = 0.0;
|
||||
for (int i = 1; i < 15; i++)
|
||||
for (int i = 1; i < 50; i++)
|
||||
{
|
||||
float o = rand(float(i) / 3.) * 15 * 2.0;
|
||||
float o = rand(float(i) / 3.0) * 15 * 2.0;
|
||||
float z = rand(float(i) + 13.0);
|
||||
float x = 1.8 - (3.6) * (rand(floor((time*((z+1.0)/2.0)+o)/2.0)) + sin(time*o/1000.0)/10.0);
|
||||
float y = 1.0-mod((time*((z+1.0)/2.0))+o, 2.0);
|
||||
@ -45,8 +47,6 @@ static const char* stock_fragment_xmb_snowflake = GLSL(
|
||||
color += snow(vec3(x,y,z),c,o);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return color;
|
||||
}
|
||||
|
||||
|
@ -246,6 +246,7 @@ static void menu_action_setting_disp_set_label_pipeline(
|
||||
strlcpy(s,
|
||||
msg_hash_to_str(
|
||||
MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_BOKEH), len);
|
||||
break;
|
||||
case XMB_SHADER_PIPELINE_SNOWFLAKE:
|
||||
strlcpy(s,
|
||||
msg_hash_to_str(
|
||||
|
Loading…
x
Reference in New Issue
Block a user