Hi there!
I just wanted to know the algorithm you've used in the displacement and specular functions.
I want to translate into python, so I don't know much about js.
For both functions you transform to grayscale using this function:
v = 0.2126*r + 0.7152*g + 0.0722*b
For the displacement map I see the this.contrastImage function but when I try to use console log inside it, it does not show anything.
Can you help me clear how the displacement and the specular function works pixel-wise?
Thank you.