Jump to content

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


Hersir
 Share

Recommended Posts

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

Link to comment
Share on other sites

@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

Link to comment
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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...