RayTK v0.13 + Tutorials for 2D/3D, materials, and more - 2021-04-26 07:12

RayTK v0.13 + Tutorials for 2D/3D, materials, and more

Link to main site

1 Like

How would you go about applying a height map along with the texture and material?

1 Like

It depends on what kind of shape you’re dealing with.
If it’s a plane, there’s a height field input that you can use.
If it’s some other shape but you only want the height going in one direction, you can use a translate with a field input offsetting it in whatever direction.
For more complex shapes you’d need to find a way to point the field in the right direction.
Inigo Quilez has done some work on shape-specific surface normals, which would help, but I haven’t ported into the toolkit yet.