PLAYGROUND3D: Added minimal fog test for tinygl renderer.

This commit is contained in:
Paweł Kołodziejski 2022-06-05 21:01:04 +02:00
parent d0f8d3c487
commit af899c07bf
No known key found for this signature in database
GPG key ID: 0BDADC9E74440FF7
9 changed files with 44 additions and 2 deletions

View file

@ -168,6 +168,9 @@ void ShaderRenderer::setupViewport(int x, int y, int width, int height) {
glViewport(x, y, width, height);
}
void ShaderRenderer::enableFog(const Math::Vector4d &fogColor) {
}
void ShaderRenderer::drawCube(const Math::Vector3d &pos, const Math::Vector3d &roll) {
auto rotateMatrix = (Math::Quaternion::fromEuler(roll.x(), roll.y(), roll.z(), Math::EO_XYZ)).inverse().toMatrix();
_cubeShader->use();