hoverinc / ray-tracing-renderer

[UNMAINTAINED] Real-time path tracing on the web with three.js
https://hoverinc.github.io/ray-tracing-renderer/
MIT License
645 stars 68 forks source link

GBuffer/zbuffer/material in bitmap/array format #89

Open nicolab28 opened 4 years ago

nicolab28 commented 4 years ago

I guess it must exist, but I can't get my hands on it. Is there a gbuffer, zbuffer, material buffer in bitmap / array somewhere? I may have searched poorly? Thanks.

jaxry commented 4 years ago

Are you asking in regards to adding user-defined IOR support? If so, here are probably the most relevant files:

Sorry, it's a pretty complex change so that might be confusing. I can try to help out if you have questions.

nicolab28 commented 4 years ago

Thank you very much, I looked a little, and I'm starting to understand some stuff. However, I was talking about zbuffers gbuffers. Bitmaps which store the depth information, material identifier on each pixel ... To make masks and postprod retouching