diff --git a/src/operators/filter/scale.json b/src/operators/filter/scale.json index 051da053e..b924b2c69 100644 --- a/src/operators/filter/scale.json +++ b/src/operators/filter/scale.json @@ -2,6 +2,6 @@ "meta": { "opStatus": "default", "opType": "raytk.operators.filter.scale", - "opVersion": 26 + "opVersion": 27 } } \ No newline at end of file diff --git a/src/operators/filter/scale.tox b/src/operators/filter/scale.tox index 652b1c7fc..6adfa495f 100644 Binary files a/src/operators/filter/scale.tox and b/src/operators/filter/scale.tox differ diff --git a/src/operators/filter/scale.yaml b/src/operators/filter/scale.yaml index 80d59f5fb..60b4fc40c 100644 --- a/src/operators/filter/scale.yaml +++ b/src/operators/filter/scale.yaml @@ -1,23 +1,33 @@ !rop meta: !meta opType: raytk.operators.filter.scale - opVersion: '26' + opVersion: '27' opStatus: default opDef: !def enable: !expr expr: op('..').par.Enable useRuntimeBypass: true typeSpec: !ropTypes + Useinputreturntype: !expr + expr: op('definition_1').numRows > 1 coordType: !coordT Coordtypefloat: true Coordtypevec2: true Coordtypevec3: true contextType: !contextT - Allcontexttype: true + Allcontexttype: !expr + expr: op('targetInfo')[1, 'contextType'] == '*' + Contexttypematerialcontext: !expr + expr: op('targetInfo')[1, 'contextType'] == 'MaterialContext' returnType: !returnT Allreturntype: !expr - expr: op('definition_1').numRows > 1 - Returntypevec4: true + expr: op('definition_1').numRows > 1 and op('targetInfo')[1, 'returnType'] + == '*' + Returntypesdf: !expr + expr: op('definition_1').numRows > 1 and op('targetInfo')[1, 'returnType'] + in ('*', 'Sdf') + Returntypevec4: !expr + expr: op('targetInfo')[1, 'returnType'] in ('*', 'vec4') function: !text file: src/operators/filter/scale.glsl name: function @@ -73,9 +83,20 @@ inputs: Coordtypevec2: true Coordtypevec3: true contextType: !contextT - Allcontexttype: true + Allcontexttype: !expr + expr: op('targetInfo')[1, 'contextType'] == '*' + Contexttypecontext: true + Contexttypematerialcontext: !expr + expr: op('targetInfo')[1, 'contextType'] == 'MaterialContext' returnType: !returnT - Allreturntype: true + Allreturntype: !expr + expr: op('targetInfo')[1, 'returnType'] == '*' + Returntypesdf: !expr + expr: op('targetInfo')[1, 'returnType'] in ('*', 'Sdf') + Returntypefloat: !expr + expr: op('targetInfo')[1, 'returnType'] == '*' + Returntypevec4: !expr + expr: op('targetInfo')[1, 'returnType'] in ('*', 'vec4') - !input Localalias: scaleField coordType: !coordT @@ -83,7 +104,11 @@ inputs: Coordtypevec2: true Coordtypevec3: true contextType: !contextT - Allcontexttype: true + Allcontexttype: !expr + expr: op('targetInfo')[1, 'contextType'] == '*' + Contexttypecontext: true + Contexttypematerialcontext: !expr + expr: op('targetInfo')[1, 'contextType'] == 'MaterialContext' returnType: !returnT Returntypesdf: true Returntypefloat: true @@ -92,10 +117,15 @@ inputs: - !input Localalias: pivotField coordType: !coordT + Coordtypefloat: true Coordtypevec2: true Coordtypevec3: true contextType: !contextT - Allcontexttype: true + Allcontexttype: !expr + expr: op('targetInfo')[1, 'contextType'] == '*' + Contexttypecontext: true + Contexttypematerialcontext: !expr + expr: op('targetInfo')[1, 'contextType'] == 'MaterialContext' returnType: !returnT Returntypevec4: true elements: diff --git a/src/operators/filter/transform.json b/src/operators/filter/transform.json index 939cba343..b709f4a96 100644 --- a/src/operators/filter/transform.json +++ b/src/operators/filter/transform.json @@ -2,6 +2,6 @@ "meta": { "opStatus": "default", "opType": "raytk.operators.filter.transform", - "opVersion": 15 + "opVersion": 16 } } \ No newline at end of file diff --git a/src/operators/filter/transform.tox b/src/operators/filter/transform.tox index b0a020830..9316da99a 100644 Binary files a/src/operators/filter/transform.tox and b/src/operators/filter/transform.tox differ diff --git a/src/operators/filter/transform.yaml b/src/operators/filter/transform.yaml index b0b0ee989..8750b3897 100644 --- a/src/operators/filter/transform.yaml +++ b/src/operators/filter/transform.yaml @@ -1,22 +1,32 @@ !rop meta: !meta opType: raytk.operators.filter.transform - opVersion: '15' + opVersion: '16' opStatus: default opDef: !def enable: !expr expr: op('..').par.Enable useRuntimeBypass: true typeSpec: !ropTypes + Useinputreturntype: !expr + expr: op('definition_1').numRows > 1 coordType: !coordT Coordtypevec2: true Coordtypevec3: true contextType: !contextT - Allcontexttype: true + Allcontexttype: !expr + expr: op('targetInfo')[1, 'contextType'] == '*' + Contexttypematerialcontext: !expr + expr: op('targetInfo')[1, 'contextType'] == 'MaterialContext' returnType: !returnT Allreturntype: !expr - expr: op('definition_1').numRows > 1 - Returntypevec4: true + expr: op('definition_1').numRows > 1 and op('targetInfo')[1, 'returnType'] + == '*' + Returntypesdf: !expr + expr: op('definition_1').numRows > 1 and op('targetInfo')[1, 'returnType'] + in ('*', 'Sdf') + Returntypevec4: !expr + expr: op('targetInfo')[1, 'returnType'] in ('*', 'vec4') function: !text file: src/operators/filter/transform.glsl name: function_template @@ -164,9 +174,19 @@ inputs: Coordtypevec2: true Coordtypevec3: true contextType: !contextT - Allcontexttype: true + Allcontexttype: !expr + expr: op('targetInfo')[1, 'contextType'] == '*' + Contexttypematerialcontext: !expr + expr: op('targetInfo')[1, 'contextType'] == 'MaterialContext' returnType: !returnT - Allreturntype: true + Allreturntype: !expr + expr: op('targetInfo')[1, 'returnType'] == '*' + Returntypesdf: !expr + expr: op('targetInfo')[1, 'returnType'] in ('*', 'Sdf') + Returntypefloat: !expr + expr: op('targetInfo')[1, 'returnType'] == '*' + Returntypevec4: !expr + expr: op('targetInfo')[1, 'returnType'] in ('*', 'vec4') elements: - !opElement name: transformTarget