Skip to content

Material-anisotropic example visual difference #7698

@mvaligursky

Description

@mvaligursky

We have existing Material-anisotropic example. Now that the anisotropy implementation was modified in #7668, the example looks differently, which needs to be investigated. Two issues:

  1. The example calls material.anisotropy = ((2 * x) / (NUM_SPHERES_X - 1) - 1.0) * -1.0; which uses the deprecated API, and needs to be adjusted to use the new API
  2. Visually, I would hope the example to still somehow look visually similar to what it was before, but it seems the low aniso and low roughness looks very different (left bottom corner).

before: https://playcanvas.vercel.app/#/graphics/material-anisotropic
Image

now: https://engine-ege9es532-playcanvas.vercel.app/#/graphics/material-anisotropic
Image

Note that I adjusted the camera to see the whole scene better:
Image

I see that this example looks as expected: https://engine-ege9es532-playcanvas.vercel.app/#/graphics/anisotropy-strength
And so perhaps the conversion of the old deprecated value to new value needs adjustment?

pinging @emadurandal

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: graphicsGraphics related issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions