Jump to content

UV channels and ambient texture.


SvenFrankson
 Share

Recommended Posts

Hi everyone,

(note : At first I thought it was a bug, now with a Playground I think it's a feature I don't fully understand...)

Here is a case I'm facing, waiting for some nice expert to enlighten me...

Use case

- A mesh is generated with UVs (for diffuse Texture) and UVs1 (for a default ambient texture).

- On a user action, another ambient texture is computed, based on UVs2 channel, and applied.

- The new ambient texture fails to use UVs2.

(note : I'd like to have all the UVs (UVs, UVs1 and UVs2) generated at the same time, and not on user action)

(note : A solution for my specific case would be to exchange UVs1 and UVs2 when assigning the new ambient texture)

 

Playground : https://www.babylonjs-playground.com/#6L74SN#1

Is there a way to use UVs2 for the ambient texture here ?

Alternatively, is there a use for all these UV channels in the StandardMaterial (or PBRMaterial ?) ? Some rules like "UVs or UVs1 for diffuse, UVs2 for LightMap, UVs3 for displacement..." ?

Thanks a lot and have a nice day !

 

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