Skip to main content Link Menu Expand (external link) Document Search Copy Copied

modifyNormals

beta
Keywords:
  • bumpmap
  • material
  • modularmat
  • normals
  • shading
  • surface
  • texture

Use a field to modify the normals (bump mapping) used by shading elements in a modular material.

This must be used within the modular material network, rather than on an SDF that uses such a material. In other words, insert it between an operator like diffuseContrib and the modularMat.

This can be combined with a noiseField or textureField to apply bump mapping to a surface.

Parameters

  • Enable:
  • Mode: How the modifier values are applied to the normals.
    • Add: The modifier values are added to the normals.
    • Multiply: The normals are multiplied by the modifier values.
    • Replace:
  • Mix: Mix between the original normals and the modified normals.

Inputs

  • Shading Element: (required) Shading element that will use the modified normals. This should be something like `diffuseContrib` or `specularContrib`.
    • Coordinate Types: float vec2 vec3
    • Context Types: MaterialContext LightContext
    • Return Types: float vec4 Sdf Ray Light Particle
  • Modifier Field: (optional) Field used to modify the normals.
    • Coordinate Types: float vec2 vec3
    • Context Types: MaterialContext LightContext
    • Return Types: float vec4