• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂a8bbae9f53cd0f4c0e0a1c227428495e40956f80 (tree)
時間2024-12-09 00:17:37
作者sebastian_bugiu
Commitersebastian_bugiu

Log Message

Backed out changeset: f7ee3b0f8ad7

Change Summary

差異

diff -r f7ee3b0f8ad7 -r a8bbae9f53cd desktop/raw/hotshot_gamedata/skybox_postprocess.compositor
--- a/desktop/raw/hotshot_gamedata/skybox_postprocess.compositor Sun Dec 08 15:12:34 2024 +0100
+++ b/desktop/raw/hotshot_gamedata/skybox_postprocess.compositor Sun Dec 08 16:17:37 2024 +0100
@@ -1,23 +1,3 @@
1-compositor_node SkyboxSMAA_RenderingNode
2-{
3- //in 0 rt0
4- texture rt1 target_width target_height PF_R8G8B8A8
5-
6- //Play nice with Multi-GPU setups. See Postprocessing sample.
7- target rt1
8- {
9- pass clear
10- {
11- colour_value 0 1 0 1
12- buffers colour
13- discard_only true
14- }
15- }
16-
17- //out 0 rt0
18- out 1 rt1
19-}
20-
211 compositor_node DefaultFinalComposition
222 {
233 in 0 rtN
@@ -39,10 +19,10 @@
3919 }
4020
4121 pass render_quad
42- {
22+ {
4323 //Ignore the alpha channel
4424 material Ogre/Copy/4xFP32
45- input 0 rtN
25+ input 0 rtN
4626 }
4727
4828 pass render_scene
@@ -108,7 +88,7 @@
10888 pass render_scene
10989 {
11090 //Filter stuff that shouldn't be reflected (vampires?)
111- visibility_mask 0x00000005
91+ visibility_mask 0xFFFFFFFF
11292 overlays off
11393 camera_cubemap_reorient true
11494 }
@@ -132,7 +112,7 @@
132112 pass render_scene
133113 {
134114 //Filter stuff that shouldn't be reflected (vampires?)
135- visibility_mask 0x00000005
115+ visibility_mask 0xFFFFFFFF
136116 overlays off
137117 camera_cubemap_reorient true
138118 }
@@ -156,7 +136,7 @@
156136 pass render_scene
157137 {
158138 //Filter stuff that shouldn't be reflected (vampires?)
159- visibility_mask 0x00000005
139+ visibility_mask 0xFFFFFFFF
160140 overlays off
161141 camera_cubemap_reorient true
162142 }
@@ -180,7 +160,7 @@
180160 pass render_scene
181161 {
182162 //Filter stuff that shouldn't be reflected (vampires?)
183- visibility_mask 0x00000005
163+ visibility_mask 0xFFFFFFFF
184164 overlays off
185165 camera_cubemap_reorient true
186166 }
@@ -204,7 +184,7 @@
204184 pass render_scene
205185 {
206186 //Filter stuff that shouldn't be reflected (vampires?)
207- visibility_mask 0x00000005
187+ visibility_mask 0xFFFFFFFF
208188 overlays off
209189 camera_cubemap_reorient true
210190 }
@@ -228,7 +208,7 @@
228208 pass render_scene
229209 {
230210 //Filter stuff that shouldn't be reflected (vampires?)
231- visibility_mask 0x00000005
211+ visibility_mask 0xFFFFFFFF
232212 overlays off
233213 camera_cubemap_reorient true
234214 }
@@ -252,7 +232,7 @@
252232 pass render_scene
253233 {
254234 //Filter stuff that shouldn't be reflected (vampires?)
255- visibility_mask 0x00000005
235+ visibility_mask 0xFFFFFFFF
256236 overlays off
257237 camera_cubemap_reorient true
258238 }
@@ -276,7 +256,7 @@
276256 pass render_scene
277257 {
278258 //Filter stuff that shouldn't be reflected (vampires?)
279- visibility_mask 0x00000005
259+ visibility_mask 0xFFFFFFFF
280260 overlays off
281261 camera_cubemap_reorient true
282262 }
@@ -300,7 +280,7 @@
300280 pass render_scene
301281 {
302282 //Filter stuff that shouldn't be reflected (vampires?)
303- visibility_mask 0x00000005
283+ visibility_mask 0xFFFFFFFF
304284 overlays off
305285 camera_cubemap_reorient true
306286 }
@@ -467,13 +447,90 @@
467447 }
468448 }
469449
450+abstract target cubemap_target_shadow_skybox
451+{
452+ pass clear { colour_value 1 1 1 1 }
453+ pass render_scene
454+ {
455+ camera_cubemap_reorient true
456+ }
457+}
458+
459+compositor_node_shadow DynamicCubemapShadowNode
460+{
461+ technique pssm
462+
463+ texture atlas 2048 7168 PF_D32_FLOAT no_fsaa
464+ texture tmpCubemap 1024 1024 PF_FLOAT32_R cubemap no_fsaa
465+
466+ num_splits 3
467+ pssm_lambda 0.95
468+ shadow_map 0 atlas uv 0.0 0.000000000000000 1.0 0.285714285714286 light 0 split 0
469+ shadow_map 1 atlas uv 0.0 0.285714285714286 0.5 0.142857142857143 light 0 split 1
470+ shadow_map 2 atlas uv 0.5 0.285714285714286 0.5 0.142857142857143 light 0 split 2
471+
472+ technique focused
473+ shadow_map 3 atlas uv 0.0 0.428571428571429 1.0 0.285714285714286 light 1
474+ shadow_map 4 atlas uv 0.0 0.714285714285714 1.0 0.285714285714286 light 2
475+
476+ target atlas
477+ {
478+ pass clear
479+ {
480+ colour_value 1 1 1 1
481+ }
482+ }
483+
484+ shadow_map_target_type directional
485+ {
486+ shadow_map 0 1 2
487+ {
488+ pass render_scene
489+ {
490+ }
491+ }
492+ }
493+
494+ shadow_map_target_type directional spot
495+ {
496+ shadow_map 3 4
497+ {
498+ pass render_scene
499+ {
500+ }
501+ }
502+ }
503+
504+ shadow_map_target_type point
505+ {
506+ shadow_map_repeat 3 4
507+ {
508+ target tmpCubemap +X : cubemap_target_shadow_skybox {}
509+ target tmpCubemap -X : cubemap_target_shadow_skybox {}
510+ target tmpCubemap +Y : cubemap_target_shadow_skybox {}
511+ target tmpCubemap -Y : cubemap_target_shadow_skybox {}
512+ target tmpCubemap +Z : cubemap_target_shadow_skybox {}
513+ target tmpCubemap -Z : cubemap_target_shadow_skybox {}
514+
515+ shadow_map
516+ {
517+ pass render_quad
518+ {
519+ material Ogre/DPSM/CubeToDpsm
520+ input 0 tmpCubemap
521+ }
522+ }
523+ }
524+ }
525+}
526+
470527 compositor_node DynamicCubemapRenderingSkyboxNode0
471528 {
472- texture rt0 target_width target_height PF_R8G8B8
473- //in 0 rt_renderwindow
474- in 0 demo_dynamic_cubemap
529+ //texture rt0 target_width target_height PF_R8G8B8
530+ in 0 rt_renderwindow
531+ in 1 demo_dynamic_cubemap
475532
476- target rt0
533+ target rt_renderwindow
477534 {
478535 pass clear
479536 {
@@ -488,7 +545,7 @@
488545 //exposing is to ensure compatibility with Vulkan & D3D12.
489546 expose demo_dynamic_cubemap
490547
491- // shadows Tutorial_DynamicCubemapShadowNode
548+ shadows DynamicCubemapShadowNode
492549 overlays off
493550 rq_first 0
494551 rq_last 2
@@ -508,7 +565,7 @@
508565 rq_first 2
509566 }
510567 }
511- out 0 rt0
568+// out 0 rt0
512569 }
513570
514571 compositor_node DynamicCubemapRenderingSkyboxNode1
@@ -532,7 +589,7 @@
532589 //exposing is to ensure compatibility with Vulkan & D3D12.
533590 expose demo_dynamic_cubemap
534591
535- // shadows Tutorial_DynamicCubemapShadowNode
592+ shadows DynamicCubemapShadowNode
536593 overlays off
537594 rq_first 0
538595 rq_last 2
@@ -557,11 +614,11 @@
557614
558615 compositor_node DynamicCubemapRenderingSkyboxNode2
559616 {
560- texture rt0 target_width target_height PF_R8G8B8
561- //in 0 rt_renderwindow
562- in 0 demo_dynamic_cubemap
617+ //texture rt0 target_width target_height PF_R8G8B8
618+ in 0 rt_renderwindow
619+ in 1 demo_dynamic_cubemap
563620
564- target rt0
621+ target rt_renderwindow
565622 {
566623 pass clear
567624 {
@@ -576,7 +633,7 @@
576633 //exposing is to ensure compatibility with Vulkan & D3D12.
577634 expose demo_dynamic_cubemap
578635
579- // shadows Tutorial_DynamicCubemapShadowNode
636+ shadows DynamicCubemapShadowNode
580637 overlays off
581638 rq_first 0
582639 rq_last 2
@@ -596,16 +653,16 @@
596653 rq_first 2
597654 }
598655 }
599- out 0 rt0
656+// out 0 rt0
600657 }
601658
602659 compositor_node DynamicCubemapRenderingSkyboxNode3
603660 {
604- texture rt0 target_width target_height PF_R8G8B8
605- //in 0 rt_renderwindow
606- in 0 demo_dynamic_cubemap
661+ //texture rt0 target_width target_height PF_R8G8B8
662+ in 0 rt_renderwindow
663+ in 1 demo_dynamic_cubemap
607664
608- target rt0
665+ target rt_renderwindow
609666 {
610667 pass clear
611668 {
@@ -620,7 +677,7 @@
620677 //exposing is to ensure compatibility with Vulkan & D3D12.
621678 expose demo_dynamic_cubemap
622679
623- // shadows Tutorial_DynamicCubemapShadowNode
680+ shadows DynamicCubemapShadowNode
624681 overlays off
625682 rq_first 0
626683 rq_last 2
@@ -640,16 +697,16 @@
640697 rq_first 2
641698 }
642699 }
643- out 0 rt0
700+// out 0 rt0
644701 }
645702
646703 compositor_node DynamicCubemapRenderingSkyboxNode4
647704 {
648- texture rt0 target_width target_height PF_R8G8B8
649- //in 0 rt_renderwindow
650- in 0 demo_dynamic_cubemap
705+ //texture rt0 target_width target_height PF_R8G8B8
706+ in 0 rt_renderwindow
707+ in 1 demo_dynamic_cubemap
651708
652- target rt0
709+ target rt_renderwindow
653710 {
654711 pass clear
655712 {
@@ -664,7 +721,7 @@
664721 //exposing is to ensure compatibility with Vulkan & D3D12.
665722 expose demo_dynamic_cubemap
666723
667- // shadows Tutorial_DynamicCubemapShadowNode
724+ shadows DynamicCubemapShadowNode
668725 overlays off
669726 rq_first 0
670727 rq_last 2
@@ -684,16 +741,16 @@
684741 rq_first 2
685742 }
686743 }
687- out 0 rt0
744+// out 0 rt0
688745 }
689746
690747 compositor_node DynamicCubemapRenderingSkyboxNode5
691748 {
692- texture rt0 target_width target_height PF_R8G8B8
693- //in 0 rt_renderwindow
694- in 0 demo_dynamic_cubemap
749+ //texture rt0 target_width target_height PF_R8G8B8
750+ in 0 rt_renderwindow
751+ in 1 demo_dynamic_cubemap
695752
696- target rt0
753+ target rt_renderwindow
697754 {
698755 pass clear
699756 {
@@ -708,7 +765,7 @@
708765 //exposing is to ensure compatibility with Vulkan & D3D12.
709766 expose demo_dynamic_cubemap
710767
711- // shadows Tutorial_DynamicCubemapShadowNode
768+ shadows DynamicCubemapShadowNode
712769 overlays off
713770 rq_first 0
714771 rq_last 2
@@ -728,16 +785,16 @@
728785 rq_first 2
729786 }
730787 }
731- out 0 rt0
788+// out 0 rt0
732789 }
733790
734791 compositor_node DynamicCubemapRenderingSkyboxNode6
735792 {
736- texture rt0 target_width target_height PF_R8G8B8
737- //in 0 rt_renderwindow
738- in 0 demo_dynamic_cubemap
793+ //texture rt0 target_width target_height PF_R8G8B8
794+ in 0 rt_renderwindow
795+ in 1 demo_dynamic_cubemap
739796
740- target rt0
797+ target rt_renderwindow
741798 {
742799 pass clear
743800 {
@@ -752,7 +809,7 @@
752809 //exposing is to ensure compatibility with Vulkan & D3D12.
753810 expose demo_dynamic_cubemap
754811
755- // shadows Tutorial_DynamicCubemapShadowNode
812+ shadows DynamicCubemapShadowNode
756813 overlays off
757814 rq_first 0
758815 rq_last 2
@@ -772,16 +829,16 @@
772829 rq_first 2
773830 }
774831 }
775- out 0 rt0
832+// out 0 rt0
776833 }
777834
778835 compositor_node DynamicCubemapRenderingSkyboxNode7
779836 {
780- texture rt0 target_width target_height PF_R8G8B8
781- //in 0 rt_renderwindow
782- in 0 demo_dynamic_cubemap
837+ //texture rt0 target_width target_height PF_R8G8B8
838+ in 0 rt_renderwindow
839+ in 1 demo_dynamic_cubemap
783840
784- target rt0
841+ target rt_renderwindow
785842 {
786843 pass clear
787844 {
@@ -796,7 +853,7 @@
796853 //exposing is to ensure compatibility with Vulkan & D3D12.
797854 expose demo_dynamic_cubemap
798855
799- // shadows Tutorial_DynamicCubemapShadowNode
856+ shadows DynamicCubemapShadowNode
800857 overlays off
801858 rq_first 0
802859 rq_last 2
@@ -816,16 +873,16 @@
816873 rq_first 2
817874 }
818875 }
819- out 0 rt0
876+// out 0 rt0
820877 }
821878
822879 compositor_node DynamicCubemapRenderingSkyboxNode8
823880 {
824- texture rt0 target_width target_height PF_R8G8B8
825- //in 0 rt_renderwindow
826- in 0 demo_dynamic_cubemap
881+ //texture rt0 target_width target_height PF_R8G8B8
882+ in 0 rt_renderwindow
883+ in 1 demo_dynamic_cubemap
827884
828- target rt0
885+ target rt_renderwindow
829886 {
830887 pass clear
831888 {
@@ -840,7 +897,7 @@
840897 //exposing is to ensure compatibility with Vulkan & D3D12.
841898 expose demo_dynamic_cubemap
842899
843- // shadows Tutorial_DynamicCubemapShadowNode
900+ shadows DynamicCubemapShadowNode
844901 overlays off
845902 rq_first 0
846903 rq_last 2
@@ -860,7 +917,7 @@
860917 rq_first 2
861918 }
862919 }
863- out 0 rt0
920+// out 0 rt0
864921 }
865922
866923 compositor_node SkyboxNode0
@@ -1229,16 +1286,12 @@
12291286 // connect_output DefaultFinalComposition 1
12301287 // connect_output SkyboxNode0 0
12311288
1289+ //Render Window on channel #0
12321290 connect_external 0 DynamicCubemapRenderingSkyboxNode0 0
1233-
1234- connect DynamicCubemapRenderingSkyboxNode0 0 SmaaNode 0
1235- connect SkyboxSMAA_RenderingNode 1 SmaaNode 1
1236-
1237- connect SmaaNode 0 DefaultFinalComposition 0
1238- connect_output DefaultFinalComposition 1
1239-
1240-
1241- //connect SmaaNode 0 FinalComposition 1
1291+ //Cubemap on channel #1
1292+ connect_external 1 DynamicCubemapRenderingSkyboxNode0 1
1293+// connect DynamicCubemapRenderingSkyboxNode0 0 DefaultFinalComposition 0
1294+// connect_output DefaultFinalComposition 1
12421295 }
12431296
12441297 workspace SkyboxWorkspace1
@@ -1250,18 +1303,18 @@
12501303 connect_external 0 DynamicCubemapRenderingSkyboxNode1 0
12511304 //Cubemap on channel #1
12521305 connect_external 1 DynamicCubemapRenderingSkyboxNode1 1
1253- //connect DynamicCubemapRenderingSkyboxNode1 0 DefaultFinalComposition 0
1254- //connect_output DefaultFinalComposition 1
1306+// connect DynamicCubemapRenderingSkyboxNode1 0 DefaultFinalComposition 0
1307+// connect_output DefaultFinalComposition 1
12551308 }
12561309
12571310 workspace SkyboxWorkspace2
12581311 {
12591312 //Render Window on channel #0
1260- //connect_external 0 DynamicCubemapRenderingSkyboxNode2 0
1313+ connect_external 0 DynamicCubemapRenderingSkyboxNode2 0
12611314 //Cubemap on channel #1
1262- connect_external 0 DynamicCubemapRenderingSkyboxNode2 0
1263- connect DynamicCubemapRenderingSkyboxNode2 0 DefaultFinalComposition 0
1264- connect_output DefaultFinalComposition 1
1315+ connect_external 1 DynamicCubemapRenderingSkyboxNode2 1
1316+// connect DynamicCubemapRenderingSkyboxNode2 0 DefaultFinalComposition 0
1317+// connect_output DefaultFinalComposition 1
12651318 }
12661319
12671320 workspace SkyboxWorkspace3
@@ -1269,9 +1322,12 @@
12691322 // connect SkyboxNode3 0 DefaultFinalComposition 0
12701323 // connect_output DefaultFinalComposition 1
12711324
1325+ //Render Window on channel #0
12721326 connect_external 0 DynamicCubemapRenderingSkyboxNode3 0
1273- connect DynamicCubemapRenderingSkyboxNode3 0 DefaultFinalComposition 0
1274- connect_output DefaultFinalComposition 1
1327+ //Cubemap on channel #1
1328+ connect_external 1 DynamicCubemapRenderingSkyboxNode3 1
1329+// connect DynamicCubemapRenderingSkyboxNode3 0 DefaultFinalComposition 0
1330+// connect_output DefaultFinalComposition 1
12751331 }
12761332
12771333 workspace SkyboxWorkspace4
@@ -1279,9 +1335,12 @@
12791335 // connect SkyboxNode4 0 DefaultFinalComposition 0
12801336 // connect_output DefaultFinalComposition 1
12811337
1338+ //Render Window on channel #0
12821339 connect_external 0 DynamicCubemapRenderingSkyboxNode4 0
1283- connect DynamicCubemapRenderingSkyboxNode4 0 DefaultFinalComposition 0
1284- connect_output DefaultFinalComposition 1
1340+ //Cubemap on channel #1
1341+ connect_external 1 DynamicCubemapRenderingSkyboxNode4 1
1342+// connect DynamicCubemapRenderingSkyboxNode4 0 DefaultFinalComposition 0
1343+// connect_output DefaultFinalComposition 1
12851344 }
12861345
12871346 workspace SkyboxWorkspace5
@@ -1289,9 +1348,12 @@
12891348 // connect SkyboxNode5 0 DefaultFinalComposition 0
12901349 // connect_output DefaultFinalComposition 1
12911350
1351+ //Render Window on channel #0
12921352 connect_external 0 DynamicCubemapRenderingSkyboxNode5 0
1293- connect DynamicCubemapRenderingSkyboxNode5 0 DefaultFinalComposition 0
1294- connect_output DefaultFinalComposition 1
1353+ //Cubemap on channel #1
1354+ connect_external 1 DynamicCubemapRenderingSkyboxNode5 1
1355+// connect DynamicCubemapRenderingSkyboxNode5 0 DefaultFinalComposition 0
1356+// connect_output DefaultFinalComposition 1
12951357 }
12961358
12971359 workspace SkyboxWorkspace6
@@ -1299,9 +1361,12 @@
12991361 // connect SkyboxNode6 0 DefaultFinalComposition 0
13001362 // connect_output DefaultFinalComposition 1
13011363
1364+ //Render Window on channel #0
13021365 connect_external 0 DynamicCubemapRenderingSkyboxNode6 0
1303- connect DynamicCubemapRenderingSkyboxNode6 0 DefaultFinalComposition 0
1304- connect_output DefaultFinalComposition 1
1366+ //Cubemap on channel #1
1367+ connect_external 1 DynamicCubemapRenderingSkyboxNode6 1
1368+// connect DynamicCubemapRenderingSkyboxNode6 0 DefaultFinalComposition 0
1369+// connect_output DefaultFinalComposition 1
13051370 }
13061371
13071372 workspace SkyboxWorkspace7
@@ -1309,9 +1374,12 @@
13091374 // connect SkyboxNode7 0 DefaultFinalComposition 0
13101375 // connect_output DefaultFinalComposition 1
13111376
1377+ //Render Window on channel #0
13121378 connect_external 0 DynamicCubemapRenderingSkyboxNode7 0
1313- connect DynamicCubemapRenderingSkyboxNode7 0 DefaultFinalComposition 0
1314- connect_output DefaultFinalComposition 1
1379+ //Cubemap on channel #1
1380+ connect_external 1 DynamicCubemapRenderingSkyboxNode7 1
1381+// connect DynamicCubemapRenderingSkyboxNode7 0 DefaultFinalComposition 0
1382+// connect_output DefaultFinalComposition 1
13151383 }
13161384
13171385 workspace SkyboxWorkspace8
@@ -1319,7 +1387,10 @@
13191387 // connect SkyboxNode8 0 DefaultFinalComposition 0
13201388 // connect_output DefaultFinalComposition 1
13211389
1390+ //Render Window on channel #0
13221391 connect_external 0 DynamicCubemapRenderingSkyboxNode8 0
1323- connect DynamicCubemapRenderingSkyboxNode8 0 DefaultFinalComposition 0
1324- connect_output DefaultFinalComposition 1
1392+ //Cubemap on channel #1
1393+ connect_external 1 DynamicCubemapRenderingSkyboxNode8 1
1394+// connect DynamicCubemapRenderingSkyboxNode8 0 DefaultFinalComposition 0
1395+// connect_output DefaultFinalComposition 1
13251396 }