From 8c6b1d5821f8780b5662c6217b45d7543af99b76 Mon Sep 17 00:00:00 2001 From: bloeys Date: Mon, 6 May 2024 23:23:52 +0400 Subject: [PATCH] Adjust shadow map texture sizes --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 81b50ed..6345519 100755 --- a/main.go +++ b/main.go @@ -639,7 +639,7 @@ func (g *Game) initFbos() { assert.T(demoFbo.IsComplete(), "Demo fbo is not complete after init") // Depth map fbo - dirLightDepthMapFbo = buffers.NewFramebuffer(1024, 1024) + dirLightDepthMapFbo = buffers.NewFramebuffer(2048, 2048) dirLightDepthMapFbo.SetNoColorBuffer() dirLightDepthMapFbo.NewDepthAttachment( buffers.FramebufferAttachmentType_Texture, @@ -649,7 +649,7 @@ func (g *Game) initFbos() { assert.T(dirLightDepthMapFbo.IsComplete(), "Depth map fbo is not complete after init") // Point light depth map fbo - pointLightDepthMapFbo = buffers.NewFramebuffer(1024, 1024) + pointLightDepthMapFbo = buffers.NewFramebuffer(512, 512) pointLightDepthMapFbo.SetNoColorBuffer() pointLightDepthMapFbo.NewDepthCubemapArrayAttachment( buffers.FramebufferAttachmentDataFormat_DepthF32, @@ -659,7 +659,7 @@ func (g *Game) initFbos() { assert.T(pointLightDepthMapFbo.IsComplete(), "Point light depth map fbo is not complete after init") // Spot light depth map fbo - spotLightDepthMapFbo = buffers.NewFramebuffer(1024, 1024) + spotLightDepthMapFbo = buffers.NewFramebuffer(512, 512) spotLightDepthMapFbo.SetNoColorBuffer() spotLightDepthMapFbo.NewDepthTextureArrayAttachment( buffers.FramebufferAttachmentDataFormat_DepthF32,