• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修訂866920582d62d53ab9c79de8db1ffc7a4332d737 (tree)
時間2024-12-10 05:41:59
作者sebastian_bugiu
Commitersebastian_bugiu

Log Message

Added SMAA + Dynamic Cubemaps.

Change Summary

差異

diff -r 2d47ed9e9b4f -r 866920582d62 desktop/raw/hotshot_gamedata/skybox_postprocess.compositor
--- a/desktop/raw/hotshot_gamedata/skybox_postprocess.compositor Sun Dec 08 16:23:57 2024 +0100
+++ b/desktop/raw/hotshot_gamedata/skybox_postprocess.compositor Mon Dec 09 21:41:59 2024 +0100
@@ -1,3 +1,23 @@
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 0 rt1
19+}
20+
121 compositor_node DefaultFinalComposition
222 {
323 in 0 rtN
@@ -526,11 +546,11 @@
526546
527547 compositor_node DynamicCubemapRenderingSkyboxNode0
528548 {
529- //texture rt0 target_width target_height PF_R8G8B8
530- in 0 rt_renderwindow
531- in 1 demo_dynamic_cubemap
549+ texture rt0 target_width target_height PF_R8G8B8
550+ //in 0 rt_renderwindow
551+ in 0 demo_dynamic_cubemap
532552
533- target rt_renderwindow
553+ target rt0
534554 {
535555 pass clear
536556 {
@@ -565,16 +585,16 @@
565585 rq_first 2
566586 }
567587 }
568-// out 0 rt0
588+ out 0 rt0
569589 }
570590
571591 compositor_node DynamicCubemapRenderingSkyboxNode1
572592 {
573- //texture rt0 target_width target_height PF_R8G8B8
574- in 0 rt_renderwindow
575- in 1 demo_dynamic_cubemap
593+ texture rt0 target_width target_height PF_R8G8B8
594+ //in 0 rt_renderwindow
595+ in 0 demo_dynamic_cubemap
576596
577- target rt_renderwindow
597+ target rt0
578598 {
579599 pass clear
580600 {
@@ -609,16 +629,16 @@
609629 rq_first 2
610630 }
611631 }
612-// out 0 rt0
632+ out 0 rt0
613633 }
614634
615635 compositor_node DynamicCubemapRenderingSkyboxNode2
616636 {
617- //texture rt0 target_width target_height PF_R8G8B8
618- in 0 rt_renderwindow
619- in 1 demo_dynamic_cubemap
637+ texture rt0 target_width target_height PF_R8G8B8
638+ //in 0 rt_renderwindow
639+ in 0 demo_dynamic_cubemap
620640
621- target rt_renderwindow
641+ target rt0
622642 {
623643 pass clear
624644 {
@@ -653,16 +673,16 @@
653673 rq_first 2
654674 }
655675 }
656-// out 0 rt0
676+ out 0 rt0
657677 }
658678
659679 compositor_node DynamicCubemapRenderingSkyboxNode3
660680 {
661- //texture rt0 target_width target_height PF_R8G8B8
662- in 0 rt_renderwindow
663- in 1 demo_dynamic_cubemap
681+ texture rt0 target_width target_height PF_R8G8B8
682+ //in 0 rt_renderwindow
683+ in 0 demo_dynamic_cubemap
664684
665- target rt_renderwindow
685+ target rt0
666686 {
667687 pass clear
668688 {
@@ -697,16 +717,16 @@
697717 rq_first 2
698718 }
699719 }
700-// out 0 rt0
720+ out 0 rt0
701721 }
702722
703723 compositor_node DynamicCubemapRenderingSkyboxNode4
704724 {
705- //texture rt0 target_width target_height PF_R8G8B8
706- in 0 rt_renderwindow
707- in 1 demo_dynamic_cubemap
725+ texture rt0 target_width target_height PF_R8G8B8
726+ //in 0 rt_renderwindow
727+ in 0 demo_dynamic_cubemap
708728
709- target rt_renderwindow
729+ target rt0
710730 {
711731 pass clear
712732 {
@@ -741,16 +761,16 @@
741761 rq_first 2
742762 }
743763 }
744-// out 0 rt0
764+ out 0 rt0
745765 }
746766
747767 compositor_node DynamicCubemapRenderingSkyboxNode5
748768 {
749- //texture rt0 target_width target_height PF_R8G8B8
750- in 0 rt_renderwindow
751- in 1 demo_dynamic_cubemap
769+ texture rt0 target_width target_height PF_R8G8B8
770+ //in 0 rt_renderwindow
771+ in 0 demo_dynamic_cubemap
752772
753- target rt_renderwindow
773+ target rt0
754774 {
755775 pass clear
756776 {
@@ -785,16 +805,16 @@
785805 rq_first 2
786806 }
787807 }
788-// out 0 rt0
808+ out 0 rt0
789809 }
790810
791811 compositor_node DynamicCubemapRenderingSkyboxNode6
792812 {
793- //texture rt0 target_width target_height PF_R8G8B8
794- in 0 rt_renderwindow
795- in 1 demo_dynamic_cubemap
813+ texture rt0 target_width target_height PF_R8G8B8
814+ //in 0 rt_renderwindow
815+ in 0 demo_dynamic_cubemap
796816
797- target rt_renderwindow
817+ target rt0
798818 {
799819 pass clear
800820 {
@@ -829,16 +849,16 @@
829849 rq_first 2
830850 }
831851 }
832-// out 0 rt0
852+ out 0 rt0
833853 }
834854
835855 compositor_node DynamicCubemapRenderingSkyboxNode7
836856 {
837- //texture rt0 target_width target_height PF_R8G8B8
838- in 0 rt_renderwindow
839- in 1 demo_dynamic_cubemap
857+ texture rt0 target_width target_height PF_R8G8B8
858+ //in 0 rt_renderwindow
859+ in 0 demo_dynamic_cubemap
840860
841- target rt_renderwindow
861+ target rt0
842862 {
843863 pass clear
844864 {
@@ -873,16 +893,16 @@
873893 rq_first 2
874894 }
875895 }
876-// out 0 rt0
896+ out 0 rt0
877897 }
878898
879899 compositor_node DynamicCubemapRenderingSkyboxNode8
880900 {
881- //texture rt0 target_width target_height PF_R8G8B8
882- in 0 rt_renderwindow
883- in 1 demo_dynamic_cubemap
901+ texture rt0 target_width target_height PF_R8G8B8
902+ //in 0 rt_renderwindow
903+ in 0 demo_dynamic_cubemap
884904
885- target rt_renderwindow
905+ target rt0
886906 {
887907 pass clear
888908 {
@@ -917,7 +937,7 @@
917937 rq_first 2
918938 }
919939 }
920-// out 0 rt0
940+ out 0 rt0
921941 }
922942
923943 compositor_node SkyboxNode0
@@ -1282,115 +1302,117 @@
12821302
12831303 workspace SkyboxWorkspace0
12841304 {
1285-// connect SkyboxNode0 0 DefaultFinalComposition 0
1286-// connect_output DefaultFinalComposition 1
1287-// connect_output SkyboxNode0 0
1305+ //Cubemap on channel #1
1306+ connect_external 1 DynamicCubemapRenderingSkyboxNode0 0
1307+
1308+ connect DynamicCubemapRenderingSkyboxNode0 0 SmaaNode 0
1309+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
12881310
1311+ connect SmaaNode 0 DefaultFinalComposition 0
12891312 //Render Window on channel #0
1290- connect_external 0 DynamicCubemapRenderingSkyboxNode0 0
1291- //Cubemap on channel #1
1292- connect_external 1 DynamicCubemapRenderingSkyboxNode0 1
1293-// connect DynamicCubemapRenderingSkyboxNode0 0 DefaultFinalComposition 0
1294-// connect_output DefaultFinalComposition 1
1313+ connect_external 0 DefaultFinalComposition 1
12951314 }
12961315
12971316 workspace SkyboxWorkspace1
12981317 {
1299-// connect SkyboxNode1 0 DefaultFinalComposition 0
1300-// connect_output DefaultFinalComposition 1
1318+ //Cubemap on channel #1
1319+ connect_external 1 DynamicCubemapRenderingSkyboxNode1 0
1320+
1321+ connect DynamicCubemapRenderingSkyboxNode1 0 SmaaNode 0
1322+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
13011323
1324+ connect SmaaNode 0 DefaultFinalComposition 0
13021325 //Render Window on channel #0
1303- connect_external 0 DynamicCubemapRenderingSkyboxNode1 0
1304- //Cubemap on channel #1
1305- connect_external 1 DynamicCubemapRenderingSkyboxNode1 1
1306-// connect DynamicCubemapRenderingSkyboxNode1 0 DefaultFinalComposition 0
1307-// connect_output DefaultFinalComposition 1
1326+ connect_external 0 DefaultFinalComposition 1
13081327 }
13091328
13101329 workspace SkyboxWorkspace2
13111330 {
1312- //Render Window on channel #0
1313- connect_external 0 DynamicCubemapRenderingSkyboxNode2 0
13141331 //Cubemap on channel #1
1315- connect_external 1 DynamicCubemapRenderingSkyboxNode2 1
1316-// connect DynamicCubemapRenderingSkyboxNode2 0 DefaultFinalComposition 0
1317-// connect_output DefaultFinalComposition 1
1332+ connect_external 1 DynamicCubemapRenderingSkyboxNode2 0
1333+
1334+ connect DynamicCubemapRenderingSkyboxNode2 0 SmaaNode 0
1335+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
1336+
1337+ connect SmaaNode 0 DefaultFinalComposition 0
1338+ //Render Window on channel #0
1339+ connect_external 0 DefaultFinalComposition 1
13181340 }
13191341
13201342 workspace SkyboxWorkspace3
13211343 {
1322-// connect SkyboxNode3 0 DefaultFinalComposition 0
1323-// connect_output DefaultFinalComposition 1
1344+ //Cubemap on channel #1
1345+ connect_external 1 DynamicCubemapRenderingSkyboxNode3 0
1346+
1347+ connect DynamicCubemapRenderingSkyboxNode3 0 SmaaNode 0
1348+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
13241349
1350+ connect SmaaNode 0 DefaultFinalComposition 0
13251351 //Render Window on channel #0
1326- connect_external 0 DynamicCubemapRenderingSkyboxNode3 0
1327- //Cubemap on channel #1
1328- connect_external 1 DynamicCubemapRenderingSkyboxNode3 1
1329-// connect DynamicCubemapRenderingSkyboxNode3 0 DefaultFinalComposition 0
1330-// connect_output DefaultFinalComposition 1
1352+ connect_external 0 DefaultFinalComposition 1
13311353 }
13321354
13331355 workspace SkyboxWorkspace4
13341356 {
1335-// connect SkyboxNode4 0 DefaultFinalComposition 0
1336-// connect_output DefaultFinalComposition 1
1357+ //Cubemap on channel #1
1358+ connect_external 1 DynamicCubemapRenderingSkyboxNode4 0
1359+
1360+ connect DynamicCubemapRenderingSkyboxNode4 0 SmaaNode 0
1361+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
13371362
1363+ connect SmaaNode 0 DefaultFinalComposition 0
13381364 //Render Window on channel #0
1339- connect_external 0 DynamicCubemapRenderingSkyboxNode4 0
1340- //Cubemap on channel #1
1341- connect_external 1 DynamicCubemapRenderingSkyboxNode4 1
1342-// connect DynamicCubemapRenderingSkyboxNode4 0 DefaultFinalComposition 0
1343-// connect_output DefaultFinalComposition 1
1365+ connect_external 0 DefaultFinalComposition 1
13441366 }
13451367
13461368 workspace SkyboxWorkspace5
13471369 {
1348-// connect SkyboxNode5 0 DefaultFinalComposition 0
1349-// connect_output DefaultFinalComposition 1
1370+ //Cubemap on channel #1
1371+ connect_external 1 DynamicCubemapRenderingSkyboxNode5 0
1372+
1373+ connect DynamicCubemapRenderingSkyboxNode5 0 SmaaNode 0
1374+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
13501375
1376+ connect SmaaNode 0 DefaultFinalComposition 0
13511377 //Render Window on channel #0
1352- connect_external 0 DynamicCubemapRenderingSkyboxNode5 0
1353- //Cubemap on channel #1
1354- connect_external 1 DynamicCubemapRenderingSkyboxNode5 1
1355-// connect DynamicCubemapRenderingSkyboxNode5 0 DefaultFinalComposition 0
1356-// connect_output DefaultFinalComposition 1
1378+ connect_external 0 DefaultFinalComposition 1
13571379 }
13581380
13591381 workspace SkyboxWorkspace6
13601382 {
1361-// connect SkyboxNode6 0 DefaultFinalComposition 0
1362-// connect_output DefaultFinalComposition 1
1383+ //Cubemap on channel #1
1384+ connect_external 1 DynamicCubemapRenderingSkyboxNode6 0
1385+
1386+ connect DynamicCubemapRenderingSkyboxNode6 0 SmaaNode 0
1387+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
13631388
1389+ connect SmaaNode 0 DefaultFinalComposition 0
13641390 //Render Window on channel #0
1365- connect_external 0 DynamicCubemapRenderingSkyboxNode6 0
1366- //Cubemap on channel #1
1367- connect_external 1 DynamicCubemapRenderingSkyboxNode6 1
1368-// connect DynamicCubemapRenderingSkyboxNode6 0 DefaultFinalComposition 0
1369-// connect_output DefaultFinalComposition 1
1391+ connect_external 0 DefaultFinalComposition 1
13701392 }
13711393
13721394 workspace SkyboxWorkspace7
13731395 {
1374-// connect SkyboxNode7 0 DefaultFinalComposition 0
1375-// connect_output DefaultFinalComposition 1
1396+ //Cubemap on channel #1
1397+ connect_external 1 DynamicCubemapRenderingSkyboxNode7 0
1398+
1399+ connect DynamicCubemapRenderingSkyboxNode7 0 SmaaNode 0
1400+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
13761401
1402+ connect SmaaNode 0 DefaultFinalComposition 0
13771403 //Render Window on channel #0
1378- connect_external 0 DynamicCubemapRenderingSkyboxNode7 0
1379- //Cubemap on channel #1
1380- connect_external 1 DynamicCubemapRenderingSkyboxNode7 1
1381-// connect DynamicCubemapRenderingSkyboxNode7 0 DefaultFinalComposition 0
1382-// connect_output DefaultFinalComposition 1
1404+ connect_external 0 DefaultFinalComposition 1
13831405 }
13841406
13851407 workspace SkyboxWorkspace8
13861408 {
1387-// connect SkyboxNode8 0 DefaultFinalComposition 0
1388-// connect_output DefaultFinalComposition 1
1409+ //Cubemap on channel #1
1410+ connect_external 1 DynamicCubemapRenderingSkyboxNode8 0
1411+
1412+ connect DynamicCubemapRenderingSkyboxNode8 0 SmaaNode 0
1413+ connect SkyboxSMAA_RenderingNode 0 SmaaNode 1
13891414
1415+ connect SmaaNode 0 DefaultFinalComposition 0
13901416 //Render Window on channel #0
1391- connect_external 0 DynamicCubemapRenderingSkyboxNode8 0
1392- //Cubemap on channel #1
1393- connect_external 1 DynamicCubemapRenderingSkyboxNode8 1
1394-// connect DynamicCubemapRenderingSkyboxNode8 0 DefaultFinalComposition 0
1395-// connect_output DefaultFinalComposition 1
1417+ connect_external 0 DefaultFinalComposition 1
13961418 }
diff -r 2d47ed9e9b4f -r 866920582d62 desktop/raw/resources2.cfg
--- a/desktop/raw/resources2.cfg Sun Dec 08 16:23:57 2024 +0100
+++ b/desktop/raw/resources2.cfg Mon Dec 09 21:41:59 2024 +0100
@@ -8,6 +8,11 @@
88 FileSystem=/2.0/scripts/materials/Common/GLSLES
99 FileSystem=/2.0/scripts/materials/Common/HLSL
1010 FileSystem=/2.0/scripts/materials/Common/Metal
11+FileSystem=/2.0/scripts/materials/Tutorial_SMAA
12+FileSystem=/2.0/scripts/materials/Tutorial_SMAA/GLSL
13+FileSystem=/2.0/scripts/materials/Tutorial_SMAA/HLSL
14+FileSystem=/2.0/scripts/materials/Tutorial_SMAA/Metal
15+FileSystem=/2.0/scripts/materials/Tutorial_SMAA/TutorialCompositorScript
1116 FileSystem=/2.0/scripts/Compositors
1217 #FileSystem=/materials/programs/GLSL
1318 #FileSystem=/materials/textures