Move this to header since we may need it soon
This commit is contained in:
parent
11c3511605
commit
38a4f66bef
|
|
@ -82,3 +82,8 @@ void SetupDirt(globalconfig_t &cfg);
|
|||
float DirtAtPoint(const globalconfig_t &cfg, raystream_intersection_t *rs, const qvec3d &point, const qvec3d &normal,
|
||||
const modelinfo_t *selfshadow);
|
||||
void LightFace(const mbsp_t *bsp, mface_t *face, facesup_t *facesup, const globalconfig_t &cfg);
|
||||
|
||||
inline qmat4x4f TexSpaceToWorld(const mbsp_t *bsp, const mface_t *f)
|
||||
{
|
||||
return qv::inverse(WorldToTexSpace(bsp, f));
|
||||
}
|
||||
|
|
@ -219,11 +219,6 @@ qmat4x4f WorldToTexSpace(const mbsp_t *bsp, const mface_t *f)
|
|||
return T;
|
||||
}
|
||||
|
||||
inline qmat4x4f TexSpaceToWorld(const mbsp_t *bsp, const mface_t *f)
|
||||
{
|
||||
return qv::inverse(WorldToTexSpace(bsp, f));
|
||||
}
|
||||
|
||||
constexpr qvec3d TexCoordToWorld(vec_t s, vec_t t, const texorg_t *texorg)
|
||||
{
|
||||
return (texorg->texSpaceToWorld * qvec4f(s, t, /* one "unit" in front of surface */ 1.0, 1.0)).xyz();
|
||||
|
|
|
|||
Loading…
Reference in New Issue