Skip to content

Commit

Permalink
#5773: Remove IFace::getTexDefMatrix(), is superseded by IFace::getPr…
Browse files Browse the repository at this point in the history
…ojectionMatrix()
  • Loading branch information
codereader committed Oct 8, 2021
1 parent 2e09e48 commit 8e9b2d5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
10 changes: 0 additions & 10 deletions include/ibrush.h
Expand Up @@ -178,16 +178,6 @@ class IFace

virtual const Plane3& getPlane3() const = 0;

/**
* Returns the 3x3 texture matrix for this face, containing shift, scale and rotation.
*
* xx, yx, xy and yy hold the scale and rotation
* tx and ty hold the shift
*
* OBSOLETE
*/
virtual Matrix4 getTexDefMatrix() const = 0;

/**
* The matrix used to project world coordinates to U/V space, after the winding vertices
* have been transformed to this face's axis base system.
Expand Down
6 changes: 3 additions & 3 deletions radiantcore/brush/BrushNode.cpp
Expand Up @@ -90,13 +90,13 @@ std::string BrushNode::getFingerprint()
hash.addString(face->getShader());

// Texture Matrix
auto texdef = face->getTexDefMatrix();
auto texdef = face->getProjectionMatrix();
hash.addDouble(texdef.xx(), SignificantDigits);
hash.addDouble(texdef.yx(), SignificantDigits);
hash.addDouble(texdef.tx(), SignificantDigits);
hash.addDouble(texdef.zx(), SignificantDigits);
hash.addDouble(texdef.xy(), SignificantDigits);
hash.addDouble(texdef.yy(), SignificantDigits);
hash.addDouble(texdef.ty(), SignificantDigits);
hash.addDouble(texdef.zy(), SignificantDigits);
}

return hash;
Expand Down
5 changes: 0 additions & 5 deletions radiantcore/brush/Face.cpp
Expand Up @@ -746,11 +746,6 @@ const FacePlane& Face::getPlane() const {
return m_plane;
}

Matrix4 Face::getTexDefMatrix() const
{
return _texdef.matrix.getTransform();
}

SurfaceShader& Face::getFaceShader() {
return _shader;
}
Expand Down
2 changes: 0 additions & 2 deletions radiantcore/brush/Face.h
Expand Up @@ -201,8 +201,6 @@ class Face :
FacePlane& getPlane();
const FacePlane& getPlane() const;

Matrix4 getTexDefMatrix() const;

Matrix3 getProjectionMatrix() const override;
void setProjectionMatrix(const Matrix3& projection) override;

Expand Down

0 comments on commit 8e9b2d5

Please sign in to comment.