mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
c5b9352c34
This reverts commit 03a8bc9875ef4e0e942ab6d8d0d9402c4e1830fe.
18 lines
404 B
C
18 lines
404 B
C
#include "shaders_common.h"
|
|
|
|
static const char *stock_fragment_xmb = GLSL(
|
|
uniform float time;
|
|
varying vec3 fragVertexEc;
|
|
vec3 up = vec3(0, 0, 1);
|
|
|
|
void main()
|
|
{
|
|
vec3 X = dFdx(fragVertexEc);
|
|
vec3 Y = dFdy(fragVertexEc);
|
|
vec3 normal=normalize(cross(X,Y));
|
|
float c = (1.0 - dot(normal, up));
|
|
c = (1.0 - cos(c*c))/3.0;
|
|
gl_FragColor = vec4(c, c, c, 1.0);
|
|
}
|
|
);
|