| 184 | file.write(INDENT + 'return ' + functionName + '(' + outputType + '(' + arg1 + '),' + outputType + '(' + arg2 + '),' + outputType+ '(' + arg3 + '));\n') |
| 185 | |
| 186 | def _writeTransformMatrix(file, nodeName): |
| 187 | if nodeName.find('vector3M4') >= 0: |
| 188 | file.write(INDENT + 'float4 returnValue = mxp_mat * float4(mxp_in.x, mxp_in.y, mxp_in.z, 1.0);\n') |
| 189 | file.write(INDENT + 'return float3(returnValue.x, returnValue.y, returnValue.z);\n') |
| 190 | elif nodeName.find('vector2M3') >= 0: |
| 191 | file.write(INDENT + 'float3 returnValue = mxp_mat * float3(mxp_in.x, mxp_in.y, 1.0);\n') |
| 192 | file.write(INDENT + 'return float2(returnValue.x, returnValue.y);\n') |
| 193 | else: |
| 194 | file.write(INDENT + 'return mxp_mat * mxp_in;\n') |
| 195 | |
| 196 | def _writeTwoArgumentCombine(file, outputType): |
| 197 | if outputType == 'color': |