1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00

Define STVEC in an Intel friendly way.

This commit is contained in:
S2S 2020-10-10 13:51:22 +02:00 committed by Sergey Lipskiy
parent b5a6b3b1e2
commit 5fa66762b3

View File

@ -554,7 +554,7 @@ public:
}
m_part +=
// Return the vector of the standard basis of R^4 with a 1 at position <pos> and 0 otherwise.
" #define STVEC(pos) step(float(pos) - 0.5, vec4(0.0,1.0,2.0,3.0)) - step(float(pos) + 0.5, vec4(0.0,1.0,2.0,3.0)) \n";
" #define STVEC(pos) (step(float(pos), vec4(0.5,1.5,2.5,3.5)) - step(float(pos), vec4(-0.5,0.5,1.5,2.5))) \n";
}
};