@@ -366,6 +366,7 @@ function shadergenerator(p5, fn) {
366
366
args = args . map ( ( arg , i ) => {
367
367
if ( ! isShaderNode ( arg ) ) {
368
368
const typeName = properties . args [ i ] === 'genType' ? inferredType : properties . args [ i ] ;
369
+ console . log ( typeName ) ;
369
370
arg = nodeConstructors [ typeName ] ( arg ) ;
370
371
}
371
372
return arg ;
@@ -809,12 +810,12 @@ function shadergenerator(p5, fn) {
809
810
// 'isnan': {},
810
811
'log' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : true } ,
811
812
'log2' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : false } ,
812
- 'max' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : true } ,
813
- 'min' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : true } ,
814
- 'mix' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : false } ,
813
+ 'max' : { args : [ 'genType' , 'genType' ] , returnType : 'genType' , isp5Function : true } ,
814
+ 'min' : { args : [ 'genType' , 'genType' ] , returnType : 'genType' , isp5Function : true } ,
815
+ 'mix' : { args : [ 'genType' , 'genType' , 'genType' ] , returnType : 'genType' , isp5Function : false } ,
815
816
// 'mod': {},
816
817
// 'modf': {},
817
- 'pow' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : true } ,
818
+ 'pow' : { args : [ 'genType' , 'genType' ] , returnType : 'genType' , isp5Function : true } ,
818
819
'round' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : true } ,
819
820
'roundEven' : { args : [ 'genType' ] , returnType : 'genType' , isp5Function : false } ,
820
821
// 'sign': {},
0 commit comments