Mon, 20 Jun 2022 21:14:17 +0300
Fix pick scene rendering: we cannot use glReadPixels when using multisampling, so we need to render the pick scene to a separate frame buffer
#pragma once #include "gl/common.h" #include "gl/basicshaderprogram.h" class AxesLayer final : public RenderLayer { BasicShader shader; public: void initializeGL() override; void overpaint(QPainter* painter) override; void paintGL() override; void mvpMatrixChanged(const glm::mat4& mvpMatrix) override; };