Skip to content

Question about the displacement and specular functions. #25

@AeroDEmi

Description

@AeroDEmi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions