struffel / PBR.ONE

Interactive preview for PBR materials and HDRI environments in the browser. Originally built for ambientCG.com, now open source.
https://pbr.one
MIT License
28 stars 5 forks source link

Combining Materials with and without opacity map does not work #9

Closed struffel closed 1 year ago

struffel commented 2 years ago

Combining materials with and without an opacity map causes the material without opacity map to become fully transparent. Demo link: https://cdn.pbr.one/0.3.0/pbr-material.html#material_name=Bricks;Metal-Walkway,color_url=https://pbr.one/media/bricks_col.jpg;https://pbr.one/media/walkway_col.jpg,normal_url=https://pbr.one/media/bricks_nrm.jpg;https://pbr.one/media/walkway_nrm.jpg,roughness_url=https://pbr.one/media/bricks_rgh.jpg;https://pbr.one/media/walkway_rgh.jpg,displacement_url=https://pbr.one/media/bricks_dsp.jpg;https://pbr.one/media/walkway_dsp.jpg,metalness_url=;https://pbr.one/media/walkway_met.jpg,opacity_url=;https://pbr.one/media/walkway_opa.jpg,displacement_scale=0.01,tiling_scale=2,geometry_type=plane,clayrender_enable=0,geometry_subdivisions=400

struffel commented 1 year ago

This has been implemented and will be part of version 0.4.0.