BabylonJS: Parallax Mapping Cheat Sheet

Below are 3 properties which are present with parallax mapping:

  • material.useParallax = true; − This enables parallax mapping. To use this property you need to assign bump texture to the material first.
  • material.useParallaxOcclusion = true; − To use this property, you have to set useParallax true. It enables Parallax Occlusion.
  • material.parallaxScaleBias = 0.1; − Applies a scaling factor for the depth to be as singed to the mesh. A value between .05 and .1 is fine for Parallax. For occlusion, you can reach 0.2.

Leave a Reply

Your email address will not be published. Required fields are marked *