From 4948d0a1235a0402f7552e664be559ef01ad85bd Mon Sep 17 00:00:00 2001 From: "Dmytro Yunchyk(aka DimA)" Date: Tue, 10 Dec 2024 16:02:32 +0100 Subject: [PATCH] fixed OGRE EXCEPTION(2:InvalidParametersException) produced by compositor pass 'Mipmap Generation (HQ)' - fixed compositor script load/store actions --- .../Compositors/PlanarReflections.compositor | 10 ++++++++++ .../ScreenSpaceReflections.compositor | 10 ++++++++++ .../GpuNormalMapper.compositor | 20 +++++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/Samples/Media/2.0/scripts/Compositors/PlanarReflections.compositor b/Samples/Media/2.0/scripts/Compositors/PlanarReflections.compositor index 9079edd1751..8f33a92558f 100644 --- a/Samples/Media/2.0/scripts/Compositors/PlanarReflections.compositor +++ b/Samples/Media/2.0/scripts/Compositors/PlanarReflections.compositor @@ -57,6 +57,16 @@ compositor_node PlanarReflectionsReflectiveRenderingNode pass generate_mipmaps { + load + { + depth dont_care + stencil dont_care + } + store + { + depth dont_care + stencil dont_care + } mipmap_method compute_hq profiling_id "Mipmap Generation (HQ)" diff --git a/Samples/Media/2.0/scripts/Compositors/ScreenSpaceReflections.compositor b/Samples/Media/2.0/scripts/Compositors/ScreenSpaceReflections.compositor index d40dfdf60a5..5dce7318dec 100644 --- a/Samples/Media/2.0/scripts/Compositors/ScreenSpaceReflections.compositor +++ b/Samples/Media/2.0/scripts/Compositors/ScreenSpaceReflections.compositor @@ -184,6 +184,16 @@ compositor_node ScreenSpaceReflectionsPostprocessNode pass generate_mipmaps { + load + { + depth dont_care + stencil dont_care + } + store + { + depth dont_care + stencil dont_care + } mipmap_method compute_hq } } diff --git a/Samples/Media/2.0/scripts/materials/Tutorial_Terrain/GpuNormalMapper.compositor b/Samples/Media/2.0/scripts/materials/Tutorial_Terrain/GpuNormalMapper.compositor index 6e54c28140f..89e7d85c629 100644 --- a/Samples/Media/2.0/scripts/materials/Tutorial_Terrain/GpuNormalMapper.compositor +++ b/Samples/Media/2.0/scripts/materials/Tutorial_Terrain/GpuNormalMapper.compositor @@ -11,6 +11,16 @@ compositor_node Terra/GpuNormalMapper pass generate_mipmaps { + load + { + depth dont_care + stencil dont_care + } + store + { + depth dont_care + stencil dont_care + } } } } @@ -33,6 +43,16 @@ compositor_node Terra/GpuNormalMapperU16 pass generate_mipmaps { + load + { + depth dont_care + stencil dont_care + } + store + { + depth dont_care + stencil dont_care + } } } }