Like, this function calculates the length between 2 pixels, with the height of each pixel this time.

a, b, height_a and height_b are floats between [0,1].

A fifth parameter, ratio, allows you to have better accuracy of the distance, depending of the strength of the height in you material (basically if tesselation is strong or not). 1 is neutral I guess.

Uploaded: over 4 years ago
Updated: over 4 years ago
Version: 1
File Name:
Size: 38.9 KB


Be the first to comment!