@@ -473,7 +473,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
473
473
node_template: NodeTemplate {
474
474
document_node: DocumentNode {
475
475
implementation: DocumentNodeImplementation :: Network ( NodeNetwork {
476
- exports: vec![ NodeInput :: node( NodeId ( 2 ) , 0 ) ] ,
476
+ exports: vec![ NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
477
477
nodes: [
478
478
DocumentNode {
479
479
inputs: vec![ NodeInput :: value( TaggedValue :: None , false ) , NodeInput :: scope( "editor-api" ) , NodeInput :: network( concrete!( String ) , 1 ) ] ,
@@ -487,12 +487,6 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
487
487
implementation: DocumentNodeImplementation :: ProtoNode ( ProtoNodeIdentifier :: new( "graphene_std::wasm_application_io::DecodeImageNode" ) ) ,
488
488
..Default :: default ( )
489
489
} ,
490
- DocumentNode {
491
- inputs: vec![ NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
492
- implementation: DocumentNodeImplementation :: ProtoNode ( ProtoNodeIdentifier :: new( "graphene_core::transform::CullNode" ) ) ,
493
- manual_composition: Some ( concrete!( Context ) ) ,
494
- ..Default :: default ( )
495
- } ,
496
490
]
497
491
. into_iter( )
498
492
. enumerate( )
@@ -525,14 +519,6 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
525
519
} ,
526
520
..Default :: default ( )
527
521
} ,
528
- DocumentNodeMetadata {
529
- persistent_metadata: DocumentNodePersistentMetadata {
530
- display_name: "Cull" . to_string( ) ,
531
- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 14 , 0 ) ) ,
532
- ..Default :: default ( )
533
- } ,
534
- ..Default :: default ( )
535
- } ,
536
522
]
537
523
. into_iter( )
538
524
. enumerate( )
@@ -845,41 +831,13 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
845
831
PropertiesRow :: with_override( "Cellular Jitter" , "TODO" , WidgetOverride :: Custom ( "noise_properties_cellular_jitter" . to_string( ) ) ) ,
846
832
] ,
847
833
output_names: vec![ "Image" . to_string( ) ] ,
848
- network_metadata: Some ( NodeNetworkMetadata {
849
- persistent_metadata: NodeNetworkPersistentMetadata {
850
- node_metadata: [
851
- DocumentNodeMetadata {
852
- persistent_metadata: DocumentNodePersistentMetadata {
853
- display_name: "Noise Pattern" . to_string( ) ,
854
- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 0 , 0 ) ) ,
855
- ..Default :: default ( )
856
- } ,
857
- ..Default :: default ( )
858
- } ,
859
- DocumentNodeMetadata {
860
- persistent_metadata: DocumentNodePersistentMetadata {
861
- display_name: "Cull" . to_string( ) ,
862
- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 0 , 0 ) ) ,
863
- ..Default :: default ( )
864
- } ,
865
- ..Default :: default ( )
866
- } ,
867
- ]
868
- . into_iter( )
869
- . enumerate( )
870
- . map( |( id, node) | ( NodeId ( id as u64 ) , node) )
871
- . collect( ) ,
872
- ..Default :: default ( )
873
- } ,
874
- ..Default :: default ( )
875
- } ) ,
876
834
..Default :: default ( )
877
835
} ,
878
836
} ,
879
837
description: Cow :: Borrowed ( "Generates different noise patterns." ) ,
880
838
properties: None ,
881
839
} ,
882
- // TODO: This needs to work with resolution-aware (raster with footprint, post-Cull node) data.
840
+ // TODO: This needs to work with resolution-aware data.
883
841
// TODO: Auto-generate this from its proto node macro
884
842
DocumentNodeDefinition {
885
843
identifier: "Mask" ,
@@ -906,7 +864,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
906
864
description: Cow :: Borrowed ( "TODO" ) ,
907
865
properties: None ,
908
866
} ,
909
- // TODO: This needs to work with resolution-aware (raster with footprint, post-Cull node) data.
867
+ // TODO: This needs to work with resolution-aware data.
910
868
// TODO: Auto-generate this from its proto node macro
911
869
DocumentNodeDefinition {
912
870
identifier: "Insert Channel" ,
@@ -934,7 +892,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
934
892
description: Cow :: Borrowed ( "TODO" ) ,
935
893
properties: None ,
936
894
} ,
937
- // TODO: This needs to work with resolution-aware (raster with footprint, post-Cull node) data.
895
+ // TODO: This needs to work with resolution-aware data.
938
896
DocumentNodeDefinition {
939
897
identifier: "Combine Channels" ,
940
898
category: "Raster" ,
@@ -1244,58 +1202,6 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
1244
1202
description: Cow :: Borrowed ( "TODO" ) ,
1245
1203
properties: None ,
1246
1204
} ,
1247
- DocumentNodeDefinition {
1248
- identifier: "Image" ,
1249
- category: "Raster" ,
1250
- node_template: NodeTemplate {
1251
- document_node: DocumentNode {
1252
- implementation: DocumentNodeImplementation :: Network ( NodeNetwork {
1253
- exports: vec![ NodeInput :: node( NodeId ( 0 ) , 0 ) ] ,
1254
- nodes: vec![ DocumentNode {
1255
- inputs: vec![ NodeInput :: network( concrete!( ImageFrameTable <Color >) , 1 ) ] ,
1256
- implementation: DocumentNodeImplementation :: ProtoNode ( ProtoNodeIdentifier :: new( "graphene_core::transform::CullNode" ) ) ,
1257
- manual_composition: Some ( concrete!( Context ) ) ,
1258
- ..Default :: default ( )
1259
- } ]
1260
- . into_iter( )
1261
- . enumerate( )
1262
- . map( |( id, node) | ( NodeId ( id as u64 ) , node) )
1263
- . collect( ) ,
1264
- ..Default :: default ( )
1265
- } ) ,
1266
- inputs: vec![
1267
- NodeInput :: value( TaggedValue :: None , false ) ,
1268
- NodeInput :: value( TaggedValue :: ImageFrame ( ImageFrameTable :: one_empty_image( ) ) , false ) ,
1269
- ] ,
1270
- ..Default :: default ( )
1271
- } ,
1272
- persistent_node_metadata: DocumentNodePersistentMetadata {
1273
- input_properties: vec![ ( "Empty" , "TODO" ) . into( ) , ( "Image" , "TODO" ) . into( ) ] ,
1274
- output_names: vec![ "Image" . to_string( ) ] ,
1275
- network_metadata: Some ( NodeNetworkMetadata {
1276
- persistent_metadata: NodeNetworkPersistentMetadata {
1277
- node_metadata: [ DocumentNodeMetadata {
1278
- persistent_metadata: DocumentNodePersistentMetadata {
1279
- display_name: "Cull" . to_string( ) ,
1280
- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 0 , 0 ) ) ,
1281
- ..Default :: default ( )
1282
- } ,
1283
- ..Default :: default ( )
1284
- } ]
1285
- . into_iter( )
1286
- . enumerate( )
1287
- . map( |( id, node) | ( NodeId ( id as u64 ) , node) )
1288
- . collect( ) ,
1289
- ..Default :: default ( )
1290
- } ,
1291
- ..Default :: default ( )
1292
- } ) ,
1293
- ..Default :: default ( )
1294
- } ,
1295
- } ,
1296
- description: Cow :: Borrowed ( "TODO" ) ,
1297
- properties: None ,
1298
- } ,
1299
1205
#[ cfg( feature = "gpu" ) ]
1300
1206
DocumentNodeDefinition {
1301
1207
identifier: "Uniform" ,
0 commit comments