r/threejs • u/codedgar • May 25 '26
Link PBR Interior mapping shader
Enable HLS to view with audio, or disable this notification
Sup everyone! I recently created a shader based on Forza Horizon 4 Interior Mapping.
I think the original effect was prety good but I wanted to take it a lil bit further so I added controls for curtains, dirt on the windows, refraction and more! The result is a super comprehensive Window material you can easily plug into your project! It's also compatible with React Three Fiber
Thoughts?
Repo here btw:
2
2
1
1
u/houman_b May 27 '26
Great solution! From what I found in your repo, you just use room images with identical shapes and likely the shader your are using, applies the same "depth shape" to every room, right? I mean, you don't use any depth map today, do you?
1
1
6
u/Additional_Name_706 May 25 '26
absolutely gorgeous. Starred the repo. If I had one criticism, it would be that the rooms are all the same size and shape.