1). Fix for cube maps in the player.
ImBuf pointer was being overridden causing the ibuf->rect to be zero. 2). Added vertex attributes for tangents in in vertex arrays. This, probably needs the extensions enabled (glEnableVertexAttribArrayARB, glDisableVertexAttribArrayARB), but am a little weary about enabling them right now.
This commit is contained in:
@@ -667,7 +667,7 @@ void my_envmap_split_ima(EnvMap *env, ImBuf *ibuf)
|
||||
}
|
||||
else {
|
||||
for(part=0; part<6; part++) {
|
||||
env->cube[part]= ibuf= IMB_allocImBuf(dx, dx, 24, IB_rect, 0);
|
||||
env->cube[part]= IMB_allocImBuf(dx, dx, 24, IB_rect, 0);
|
||||
}
|
||||
IMB_rectcpy(env->cube[0], ibuf,
|
||||
0, 0, 0, 0, dx, dx);
|
||||
|
@@ -332,6 +332,12 @@ void RAS_VAOpenGLRasterizer::TexCoordPtr(const RAS_TexVert *tv, int enabled)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef GL_ARB_vertex_program
|
||||
if(m_useTang && bgl::RAS_EXT_support._ARB_vertex_program)
|
||||
bgl::blVertexAttrib4fvARB(1/*tangent*/, tv->getTangent());
|
||||
#endif
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user