From 163f02035f0fce91fea26a4514c75ae6199b44ae Mon Sep 17 00:00:00 2001 From: mackong Date: Tue, 17 Oct 2023 03:15:47 +0800 Subject: [PATCH] fix ubershader index for transmission&volume material (#7244) Co-authored-by: Mathias Agopian --- NEW_RELEASE_NOTES.md | 1 + libs/gltfio/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEW_RELEASE_NOTES.md b/NEW_RELEASE_NOTES.md index 7b4725159c4..3927632fd4f 100644 --- a/NEW_RELEASE_NOTES.md +++ b/NEW_RELEASE_NOTES.md @@ -10,6 +10,7 @@ appropriate header in [RELEASE_NOTES.md](./RELEASE_NOTES.md). - engine: Added parameter for configuring JobSystem thread count - engine: In Java, introduce Engine.Builder +- gltfio: fix ubershader index for transmission&volume material - engine: New tone mapper: `AgXTonemapper`. - matinfo: Add support for viewing ESSL 1.0 shaders - engine: Add support for stencil buffer when post-processing is disabled (Metal backend only). diff --git a/libs/gltfio/CMakeLists.txt b/libs/gltfio/CMakeLists.txt index b4856b29413..d570f61e8e7 100644 --- a/libs/gltfio/CMakeLists.txt +++ b/libs/gltfio/CMakeLists.txt @@ -123,12 +123,12 @@ build_ubershader(specularGlossiness_masked base specularGlossiness ma build_ubershader(unlit_fade base unlit fade) build_ubershader(unlit_opaque base unlit opaque) build_ubershader(unlit_masked base unlit masked) -build_ubershader(volume_opaque volume lit opaque) -build_ubershader(volume_fade volume lit fade) -build_ubershader(volume_masked volume lit masked) build_ubershader(transmission_opaque transmission lit opaque) build_ubershader(transmission_fade transmission lit fade) build_ubershader(transmission_masked transmission lit masked) +build_ubershader(volume_opaque volume lit opaque) +build_ubershader(volume_fade volume lit fade) +build_ubershader(volume_masked volume lit masked) build_ubershader(sheen sheen _ _) add_custom_target(uberz_file DEPENDS ${UBERZ_OUTPUT_PATH})