Fix lightmaps got applied to model meshes
This commit is contained in:
parent
764a08752f
commit
6a804cd4c7
4 changed files with 11 additions and 7 deletions
|
|
@ -7,6 +7,8 @@ struct FModelVertex
|
|||
float x, y, z; // world position
|
||||
float u, v; // texture coordinates
|
||||
unsigned packedNormal; // normal vector as GL_INT_2_10_10_10_REV.
|
||||
float lu, lv; // lightmap texture coordinates
|
||||
float lindex; // lightmap texture index
|
||||
|
||||
void Set(float xx, float yy, float zz, float uu, float vv)
|
||||
{
|
||||
|
|
@ -15,6 +17,7 @@ struct FModelVertex
|
|||
z = zz;
|
||||
u = uu;
|
||||
v = vv;
|
||||
lindex = -1.0f;
|
||||
}
|
||||
|
||||
void SetNormal(float nx, float ny, float nz)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue