Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

Bug with bump + reflection when roughness param used

$
0
0

Hi everyone,

 

With DK we spotted a bug in the standardMaterial when materials are using combination of bump / reflexion / roughness.

 

If a reflexionTexture (CubeTexture) is used, the roughness param is perfect to blur it.

When a reflexionTexture and a bumpTexture are used together, everything is ok.

But when we activate roughness on that combinaison of reflexion and bump - bang - awful artifacts appears.

 

You can see that in this playground :

http://www.babylonjs-playground.com/#1MYQJJ#71

(comment / uncomment lines 43, 44)

 

It's a bit tricky to debug because the shaders calculations seem correct. Could other eyes dive into it and help us spot the culprit function ?

 

 


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>