renderer: shader variants refactor (#13434)

Part 0 of renderer reworks.
This commit is contained in:
UjinT34 2026-03-07 00:05:10 +03:00 committed by GitHub
parent 8685fd7b0c
commit a5858018d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
62 changed files with 1952 additions and 1472 deletions

View file

@ -1579,10 +1579,20 @@ Vector2D CMonitor::middle() {
return m_position + m_size / 2.f;
}
const Mat3x3& CMonitor::getTransformMatrix() {
return m_projMatrix;
}
const Mat3x3& CMonitor::getScaleMatrix() {
return m_projOutputMatrix;
}
void CMonitor::updateMatrix() {
m_projMatrix = Mat3x3::identity();
if (m_transform != WL_OUTPUT_TRANSFORM_NORMAL)
m_projMatrix.translate(m_pixelSize / 2.0).transform(Math::wlTransformToHyprutils(m_transform)).translate(-m_transformedSize / 2.0);
m_projOutputMatrix = Mat3x3::outputProjection(m_pixelSize, HYPRUTILS_TRANSFORM_NORMAL);
}
WORKSPACEID CMonitor::activeWorkspaceID() {