mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-20 04:28:04 +01:00
Banner Patterns!
Banner Patterns, some lighting fixes, and loot-table nbt!
This commit is contained in:
1 parent
93f1d55db9
commit
d7a08122c7
7 files changed
+169
-28
No files matched your search
@@ -370,15 +370,26 @@ void glColorMask(bool red, bool green, bool blue, bool alpha)
|
||||
RenderManager.StateSetWriteEnable(red, green, blue, alpha);
|
||||
}
|
||||
|
||||
static float s_lightmapU = 240.0f;
|
||||
static float s_lightmapV = 240.0f;
|
||||
|
||||
void glMultiTexCoord2f(int, float u , float v)
|
||||
{
|
||||
// Clamp these values just to be safe - the lighting code can get broken if we pass things to StateSetVertexTextureUV that are >= 1
|
||||
if( u > 255.0f ) u = 255.0f;
|
||||
if( v > 255.0f ) v = 255.0f;
|
||||
|
||||
s_lightmapU = u;
|
||||
s_lightmapV = v;
|
||||
RenderManager.StateSetVertexTextureUV( u / 256.0f, v / 256.0f);
|
||||
}
|
||||
|
||||
void glGetLightmapUV(float &u, float &v)
|
||||
{
|
||||
u = s_lightmapU;
|
||||
v = s_lightmapV;
|
||||
}
|
||||
|
||||
void glTexGen(int coord, int mode, FloatBuffer *vec)
|
||||
{
|
||||
float *data = vec->_getDataPointer();
|
||||
|
||||
Reference in new issue
Block a user