Selaa lähdekoodia

update view and scene srg to consolidate light structure definitions (#693)

Signed-off-by: Karl Haubenwallner <[email protected]>
Karl Haubenwallner 7 kuukautta sitten
vanhempi
commit
d428ab6ffd
2 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 4 0
      ShaderLib/scenesrg.srgi
  2. 4 0
      ShaderLib/viewsrg.srgi

+ 4 - 0
ShaderLib/scenesrg.srgi

@@ -9,6 +9,10 @@
 
 #include <Atom/Features/SrgSemantics.azsli>
 
+#define AZ_COLLECTING_PARTIAL_SRG_INCLUDES
+#include <Atom/Feature/Common/Assets/ShaderResourceGroups/SceneSrgIncludesAll.azsli>
+#undef AZ_COLLECTING_PARTIAL_SRG_INCLUDES
+
 partial ShaderResourceGroup SceneSrg : SRG_PerScene
 {
 /* Intentionally Empty. Helps define the SrgSemantic for SceneSrg once.*/

+ 4 - 0
ShaderLib/viewsrg.srgi

@@ -9,6 +9,10 @@
 
 #include <Atom/Features/SrgSemantics.azsli>
 
+#define AZ_COLLECTING_PARTIAL_SRG_INCLUDES
+#include <Atom/Feature/Common/Assets/ShaderResourceGroups/ViewSrgIncludesAll.azsli>
+#undef AZ_COLLECTING_PARTIAL_SRG_INCLUDES
+
 partial ShaderResourceGroup ViewSrg : SRG_PerView
 {
 /* Intentionally Empty. Helps define the SrgSemantic for ViewSrg once.*/