Git Product home page Git Product logo

Comments (2)

bsdorra avatar bsdorra commented on July 17, 2024 1

In Heitz (2014), the separable masking-shadow function is given as
$$\dfrac{\chi^+(\omega_o\cdot \omega_m)}{1+\Lambda(\omega_o)}\dfrac{\chi^+(\omega_i\cdot \omega_m)}{1+\Lambda(\omega_i)}$$
where $\omega_m$ is the microfacet normal. You're rightfully stating that it vanishes when $L$ or $V$ are facing away from the microfacet.
But, in the glTF spec Heitz's $\omega_m$ corresponds to the half-vector $H$, not the macrosurface normal $N$. So the current definition of G seems to be in line with Heitz. Consequently, $\chi^+(V\cdot N)\chi^+(V\cdot N)$ would check the macrosurface visibility.

With the current definition of $H$, these heavyside terms are indeed not particular useful. But, considering that some renderers may use sampling methods to generate $H$ this check becomes important again. Maybe we should add this info as clarification of why these terms are there.

from gltf.

emackey avatar emackey commented on July 17, 2024

@TheRealLL4 Does that information clarify this enough? Rather than edit the specification to add a note, perhaps we can point folks to this issue if they need the clarification.

from gltf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.