You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
823 B

  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( "Saturate", "Math Operators", "Saturate clamps the input values into the [0,1] range" )]
  8. public sealed class SaturateNode : SingleInputOp
  9. {
  10. protected override void CommonInit( int uniqueId )
  11. {
  12. base.CommonInit( uniqueId );
  13. m_opName = "saturate";
  14. m_previewShaderGUID = "d9e53418dc8b9d34fb395e3ea3c75985";
  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. }