Sign in to follow this  

Light too strong on Mali-T60 android devices with webgl 2.0

Recommended Posts


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

Share this post

Link to post
Share on other sites


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(
        new Vector3(-110, 200, 30),
        new Vector3(0.2, -1, -0.2),
        Math.PI / 4,
const shadowGenerator = new ShadowGenerator(1024, light);
// this line causes issue with extreme specularity
shadowGenerator.usePoissonSampling = true;
shadowGenerator.blurScale = 0.4;

will check what happens with it on shader

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.