gameknife / gkNextRenderer

A Realtime PathTracer
50 stars 4 forks source link

normal mapping #97

Closed tigrazone closed 1 month ago

gameknife commented 1 month ago

tangent space is related with the texcoord, the ONB function generate them from normal?

tigrazone commented 1 month ago

Yes. I use ONB. read code

gameknife commented 1 month ago

what I mean is, artist normal map is baking with the tangent space from texcoord uv in dcc tools. so, the generated ONB may not recover the precise normal detail. but for some material normalmap, this maybe enough

tigrazone commented 1 month ago

Get and use tangents from gltf is my next task ;-)

tigrazone commented 1 month ago

Let's use current PR and after my fix/remix make new PR