modifyNormals
beta
Keywords:
- bumpmap
- material
- modularmat
- normals
- shading
- surface
- texture
filter
modifyNormals
RayTK
v0.36
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
: -
Multiply
: -
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
vec4
- Context Types:
MaterialContext
LightContext
- Return Types:
float
vec4
Sdf
Ray
Light
Particle
- Coordinate Types:
-
Modifier Field
: (optional) Field used to modify the normals.- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
MaterialContext
LightContext
- Return Types:
float
vec4
- Coordinate Types: