blob: d48f775db324f39e85e592b1485f148011d433b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Amplify Shader Editor - Visual Shader Editing Tool
// Copyright (c) Amplify Creations, Lda <info@amplify.pt>
using System;
namespace AmplifyShaderEditor
{
[Serializable]
[NodeAttributes( "Determinant", "Matrix Operators", "Scalar determinant of a square matrix" )]
public sealed class DeterminantOpNode : SingleInputOp
{
protected override void CommonInit( int uniqueId )
{
base.CommonInit( uniqueId );
m_opName = "determinant";
m_drawPreview = false;
m_inputPorts[ 0 ].CreatePortRestrictions( WirePortDataType.FLOAT3x3,
WirePortDataType.FLOAT4x4 );
m_autoUpdateOutputPort = false;
m_inputPorts[ 0 ].ChangeType( WirePortDataType.FLOAT4x4, false );
m_outputPorts[ 0 ].ChangeType( WirePortDataType.FLOAT, false );
}
}
}
|