[Scummvm-git-logs] scummvm master -> d82500f48efee77e762c0f100345e057079f9058

grisenti noreply at scummvm.org
Sun Apr 2 15:00:24 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d82500f48e HPL1: small cleanup of rendering code


Commit: d82500f48efee77e762c0f100345e057079f9058
    https://github.com/scummvm/scummvm/commit/d82500f48efee77e762c0f100345e057079f9058
Author: grisenti (grisenti at pop-os.localdomain)
Date: 2023-04-02T17:00:05+02:00

Commit Message:
HPL1: small cleanup of rendering code

Changed paths:
    engines/hpl1/engine/graphics/Renderer3D.cpp


diff --git a/engines/hpl1/engine/graphics/Renderer3D.cpp b/engines/hpl1/engine/graphics/Renderer3D.cpp
index 0a038e72a0f..f27cc1d22be 100644
--- a/engines/hpl1/engine/graphics/Renderer3D.cpp
+++ b/engines/hpl1/engine/graphics/Renderer3D.cpp
@@ -643,8 +643,6 @@ void cRenderer3D::RenderSkyBox(cCamera3D *apCamera) {
 	if (mRenderSettings.gpuProgram) {
 		mRenderSettings.gpuProgram->UnBind();
 		mRenderSettings.gpuProgram = nullptr;
-		if (mbLog)
-			Log(" Setting Vertex program: NULL\n");
 	}
 
 	if (mRenderSettings.mpVtxBuffer) {
@@ -662,7 +660,7 @@ void cRenderer3D::RenderSkyBox(cCamera3D *apCamera) {
 
 	// Calculate the size of the sky box need to just touch the far clip plane.
 	float fFarClip = apCamera->GetFarClipPlane();
-	float fSide = sqrt((fFarClip * fFarClip) / 3) * 0.95f;
+	float fSide = fFarClip / sqrt(3) * 0.95f;
 	mtxSky.m[0][0] = fSide;
 	mtxSky.m[1][1] = fSide;
 	mtxSky.m[2][2] = fSide;




More information about the Scummvm-git-logs mailing list