Log2OpNode.cs 799 B

1234567891011121314151617181920212223242526
  1. // Amplify Shader Editor - Visual Shader Editing Tool
  2. // Copyright (c) Amplify Creations, Lda <info@amplify.pt>
  3. using System;
  4. namespace AmplifyShaderEditor
  5. {
  6. [Serializable]
  7. [NodeAttributes( "Log2", "Math Operators", "Base-2 logarithm of scalars and vectors" )]
  8. public sealed class Log2OpNode : SingleInputOp
  9. {
  10. protected override void CommonInit( int uniqueId )
  11. {
  12. base.CommonInit( uniqueId );
  13. m_opName = "log2";
  14. m_previewShaderGUID = "5975a154432d4c64cacd78d015ed08ba";
  15. m_inputPorts[ 0 ].CreatePortRestrictions( WirePortDataType.OBJECT,
  16. WirePortDataType.FLOAT ,
  17. WirePortDataType.FLOAT2,
  18. WirePortDataType.FLOAT3,
  19. WirePortDataType.FLOAT4,
  20. WirePortDataType.COLOR ,
  21. WirePortDataType.INT);
  22. }
  23. }
  24. }