fieldFunction

filter
fieldFunction
RayTK
v0.42

Modifies the values of a field using various types of math functions, similar to a Function CHOP.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Function Baked Baked
  • abs(x) Absolute Value:
  • ceil(x) Ceiling (Round Up):
  • floor(x) Floor (Round Down):
  • sign(x) Sign:
  • e^x Natural Exponentiation:
  • 2^x 2 To The Power Of:
  • fract(x) Fractional Part:
  • mod(x,y) Modulo:
  • inversesqrt(x) Inverse Square Root:
  • pow(x,y) To The Power Of:
  • round(x) Round:
  • roundEven(x) Round To Even Integer:
  • sqrt(x) Square Root:
  • trunc(x) Truncate (Integer <=):
  • cos(x) Cosine:
  • sin(x) Sine:
  • tan(x) Tangent:
  • acos(x) Arccosine:
  • asin(x) Arcsine:
  • atan(x) Arctan( Input1 ):
  • atan(x,y) Arctan( Input1 ):
  • cosh(x) Hyperbolic Cosine:
  • sinh(x) Hyperbolic Sine:
  • tanh(x) Hyperbolic Tangent:
  • log2(x) Log Base 2:
  • log(x) Natural Log:
  • degrees(x) Radians to Degrees:
  • radians(x) Degrees to Radians:
Value 1 Runtime Baked
Value 2 Runtime Baked

Inputs

  • Value 1 Field: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Value 2 Field: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4