From 0c0ada9cb946faac65867fc7f21a2bb03f6c56e2 Mon Sep 17 00:00:00 2001 From: Astrofra Date: Mon, 2 May 2022 18:23:39 +0200 Subject: [PATCH] Tutorials update for HARFANG v3.2.1. --- resources/core/pbr/blue_sky.hdr.meta | 2 +- resources/core/pbr/probe.hdr.meta | 2 +- scene_draw_to_texture.lua | 2 +- scene_draw_to_texture.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/core/pbr/blue_sky.hdr.meta b/resources/core/pbr/blue_sky.hdr.meta index 1170ee3..0cfad74 100644 --- a/resources/core/pbr/blue_sky.hdr.meta +++ b/resources/core/pbr/blue_sky.hdr.meta @@ -2,7 +2,7 @@ "profiles": { "default": { "generate-probe": true, - "max-probe-size": 64, + "max-probe-size": 128, "radiance-edge-fixup": true } } diff --git a/resources/core/pbr/probe.hdr.meta b/resources/core/pbr/probe.hdr.meta index 0528fa0..0cfad74 100644 --- a/resources/core/pbr/probe.hdr.meta +++ b/resources/core/pbr/probe.hdr.meta @@ -2,7 +2,7 @@ "profiles": { "default": { "generate-probe": true, - "max-probe-size": 256, + "max-probe-size": 128, "radiance-edge-fixup": true } } diff --git a/scene_draw_to_texture.lua b/scene_draw_to_texture.lua index e58cdd3..1ce3bcb 100644 --- a/scene_draw_to_texture.lua +++ b/scene_draw_to_texture.lua @@ -19,7 +19,7 @@ scene = hg.Scene() hg.LoadSceneFromAssets("materials/materials.scn", scene, res, hg.GetForwardPipelineInfo()) -- create a 512x512 frame buffer to draw the scene to -frame_buffer = hg.CreateFrameBuffer(512, 512, hg.TF_RGBA32F, hg.TF_D24, 8, 'framebuffer') -- 8x MSAA +frame_buffer = hg.CreateFrameBuffer(512, 512, hg.TF_RGBA32F, hg.TF_D24, 4, 'framebuffer') -- 4x MSAA color = hg.GetColorTexture(frame_buffer) -- create the cube model diff --git a/scene_draw_to_texture.py b/scene_draw_to_texture.py index d108b8d..a466cc0 100644 --- a/scene_draw_to_texture.py +++ b/scene_draw_to_texture.py @@ -20,7 +20,7 @@ hg.LoadSceneFromAssets("materials/materials.scn", scene, res, hg.GetForwardPipelineInfo()) # create a 512x512 frame buffer to draw the scene to -frame_buffer = hg.CreateFrameBuffer(512, 512, hg.TF_RGBA32F, hg.TF_D24, 8, 'framebuffer') # 8x MSAA +frame_buffer = hg.CreateFrameBuffer(512, 512, hg.TF_RGBA32F, hg.TF_D24, 4, 'framebuffer') # 4x MSAA color = hg.GetColorTexture(frame_buffer) # create the cube model