Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
2.8k
stars
429
forks
source link
Fix displacement for plymesh #363
Closed
kingiler closed 10 months ago
This patch attempts to fix the bug when displacing plymesh containing a quad. The bug only exists when running with CPU only.
Example scene (taken from pbrt.org):
where
white.png
is a grayscale png file with all pixel value 255.sphere.ply
is a UV sphere generated by Blender.Current image gives:
Expected image:
![expected](https://github.com/mmp/pbrt-v4/assets/68145845/1db92728-281e-40f2-9e7a-8aa3fcadbe50)
The difference is due to quad meshes are not rendered after displacement.