Skip to content

Latest commit

 

History

History
149 lines (114 loc) · 1.56 KB

File metadata and controls

149 lines (114 loc) · 1.56 KB

fract

fract returns the fractional part of x. This is calculated as x - floor(x).

fract(float)

Parameter

x Type: float

Return Value

Type: float

JSON
{
  "Type": "fract(float)",
  "Name": "fract(float)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "float"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "float"
    }
  ]
}

fract(vec2)

Parameter

x Type: vec2

Return Value

Type: vec2

JSON
{
  "Type": "fract(vec2)",
  "Name": "fract(vec2)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "vec2"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "vec2"
    }
  ]
}

fract(vec3)

Parameter

x Type: vec3

Return Value

Type: vec3

JSON
{
  "Type": "fract(vec3)",
  "Name": "fract(vec3)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "vec3"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "vec3"
    }
  ]
}

fract(vec4)

Parameter

x Type: vec4

Return Value

Type: vec4

JSON
{
  "Type": "fract(vec4)",
  "Name": "fract(vec4)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "vec4"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "vec4"
    }
  ]
}