leod / posh

Type-Safe Graphics Programming with Functional Shaders
136 stars 2 forks source link

Expose `dfdx`, `dfdy`, and `fwidth` #120

Closed leod closed 1 year ago

leod commented 1 year ago

Put them in FragmentInput, which is not user-constructible, so that the gradient functions can be used only in fragment shaders.