Face tracking: pass through preserveDrawingBuffer prop to WebGLRenderer#242
Face tracking: pass through preserveDrawingBuffer prop to WebGLRenderer#242etekweb wants to merge 1 commit intohiukim:masterfrom
Conversation
|
Hi Thanks for the PR! and sorry about the very late reply. How about just calling I'm not very convinced it's a necessary change to MindAR. If we are to support that, I guess a more generic way is to add a parameter |
|
Hi! Sorry for the late reply on my end as well. I just tried switching to instead calling |
|
add preserveDrawingBuffer as option for the renderer is best way for screenshot. thanks. |
Used for face tracking with Three.js Face Mesh.
Setting this property to true lets the rendered canvas be redrawn, allowing for screenshots of the face mesh. In my case, this is done with html2canvas. If the property is not set to true, html2canvas is not able to capture it.
Since this can theoretically lead to degraded performance, it should be an optional property. Therefore, in this implementation, it is an optional property read into the constructor for MindARThree.