jalberse / shimmer

Physically based rendering in Rust
Apache License 2.0
33 stars 0 forks source link

Add displacement handling #74

Open jalberse opened 8 months ago

jalberse commented 8 months ago

We currently parse displacement maps, but don't do anything with them.

jalberse commented 8 months ago

Note that this refers to the use of displacement maps when defining a ply Shape in a scene description file. That is the directive which will split edges and displace verts for physical displacement. A displacement texture directive in a material deifnition will create a bump/normal map, depending on the number of channels.

jalberse commented 8 months ago

This should be done directly before the PLY file is decomposed into the TriMesh and BilinearPatchMesh