Hersir Posted September 6, 2018 Share Posted September 6, 2018 Hi, have issue on Samsung Galaxy 6s phone chrome browser with android 7.0 and webgl 2.0 (works good on webgl 1.0). I have spotlight above mesh and looks like intensity of it is too high, as mesh is almost white (especially if camera is looking on it down from top). Mesh have PBRMetal material, trying to debug shader code, so maybe anyone have any clues what to check first ? Thanks for any input Quote Link to comment Share on other sites More sharing options...
waverider Posted September 6, 2018 Share Posted September 6, 2018 set the spectacular material to new BABYLON.Color3.Black(), i ran into the same issue and this solved the problem for me Quote Link to comment Share on other sites More sharing options...
Guest Posted September 6, 2018 Share Posted September 6, 2018 Do you have the issue on desktop? It seems that the Mali GPU is a pile of crap so not sure if this is worth turning on webgl2 on it Quote Link to comment Share on other sites More sharing options...
Hersir Posted September 7, 2018 Author Share Posted September 7, 2018 @Deltakosh no just in mali card on this android Quote Link to comment Share on other sites More sharing options...
Hersir Posted September 7, 2018 Author Share Posted September 7, 2018 @Deltakosh Ok, managed to narrow down, issue in not with light directly but only if shadow generator with usePoissonSampling = true is used. const light = new SpotLight( "light", new Vector3(-110, 200, 30), new Vector3(0.2, -1, -0.2), Math.PI / 4, 2, scene, ); const shadowGenerator = new ShadowGenerator(1024, light); // this line causes issue with extreme specularity shadowGenerator.usePoissonSampling = true; shadowGenerator.setDarkness(0); shadowGenerator.blurScale = 0.4; will check what happens with it on shader Quote Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2018 Share Posted September 7, 2018 arf, poissonSampling uses a LOT of taps so this may kill your poor Mali GPU. You may want to try using another filter Quote Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2018 Share Posted September 7, 2018 The PCF for instance could be better here Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.