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

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.