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.

24 lines
821 B

  1. // Amplify Shader Editor - Visual Shader Editing Tool
  2. // Copyright (c) Amplify Creations, Lda <info@amplify.pt>
  3. namespace AmplifyShaderEditor
  4. {
  5. [System.Serializable]
  6. [NodeAttributes( "Floor", "Math Operators", "Largest integer not greater than a scalar or each vector component" )]
  7. public sealed class FloorOpNode : SingleInputOp
  8. {
  9. protected override void CommonInit( int uniqueId )
  10. {
  11. base.CommonInit( uniqueId );
  12. m_opName = "floor";
  13. m_previewShaderGUID = "46ae4a72a9a38de40a2d8f20cfccc67d";
  14. m_inputPorts[ 0 ].CreatePortRestrictions( WirePortDataType.OBJECT,
  15. WirePortDataType.FLOAT ,
  16. WirePortDataType.FLOAT2,
  17. WirePortDataType.FLOAT3,
  18. WirePortDataType.FLOAT4,
  19. WirePortDataType.COLOR ,
  20. WirePortDataType.INT);
  21. }
  22. }
  23. }