mirror of https://github.com/AxioDL/metaforce.git
Merge branch 'master' of https://github.com/AxioDL/urde
This commit is contained in:
commit
24a07ae419
|
@ -43,8 +43,11 @@ public:
|
||||||
|
|
||||||
inline s32 Range(s32 min, s32 max)
|
inline s32 Range(s32 min, s32 max)
|
||||||
{
|
{
|
||||||
const s32 rand = Next();
|
s32 diff = max - min;
|
||||||
return min + (rand / ((min - max) + 1)) - rand;
|
s32 rand = -1;
|
||||||
|
while (rand < 0)
|
||||||
|
rand = s32((Next() << 16) | Next());
|
||||||
|
return rand % diff + min;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CRandom16* GetRandomNumber() {return g_randomNumber;}
|
static CRandom16* GetRandomNumber() {return g_randomNumber;}
|
||||||
|
|
|
@ -72,6 +72,7 @@ BOO_GLSL_BINDING_HEAD
|
||||||
|
|
||||||
static const char* FS_GLSL_NOTEX =
|
static const char* FS_GLSL_NOTEX =
|
||||||
"#version 330\n"
|
"#version 330\n"
|
||||||
|
BOO_GLSL_BINDING_HEAD
|
||||||
"struct VertToFrag\n"
|
"struct VertToFrag\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" vec4 color;\n"
|
" vec4 color;\n"
|
||||||
|
|
|
@ -173,6 +173,7 @@ BOO_GLSL_BINDING_HEAD
|
||||||
|
|
||||||
static const char* FS_GLSL_NOTEX =
|
static const char* FS_GLSL_NOTEX =
|
||||||
"#version 330\n"
|
"#version 330\n"
|
||||||
|
BOO_GLSL_BINDING_HEAD
|
||||||
"struct VertToFrag\n"
|
"struct VertToFrag\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" vec4 color;\n"
|
" vec4 color;\n"
|
||||||
|
|
Loading…
Reference in New Issue