mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
PixelShaderGen: drop fmod as it isn't used any more
This commit is contained in:
parent
c82991df5b
commit
2bc2b73e03
@ -195,14 +195,6 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
|
|||||||
|
|
||||||
if (ApiType == API_OPENGL)
|
if (ApiType == API_OPENGL)
|
||||||
{
|
{
|
||||||
// Fmod implementation gleaned from Nvidia
|
|
||||||
// At http://http.developer.nvidia.com/Cg/fmod.html
|
|
||||||
out.Write("float fmod( float x, float y )\n");
|
|
||||||
out.Write("{\n");
|
|
||||||
out.Write("\tfloat z = fract( abs( x / y) ) * abs( y );\n");
|
|
||||||
out.Write("\treturn (x < 0.0) ? -z : z;\n");
|
|
||||||
out.Write("}\n");
|
|
||||||
|
|
||||||
// Declare samplers
|
// Declare samplers
|
||||||
for (int i = 0; i < 8; ++i)
|
for (int i = 0; i < 8; ++i)
|
||||||
out.Write("uniform sampler2D samp%d;\n", i);
|
out.Write("uniform sampler2D samp%d;\n", i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user