Jump to content

UVs from 3d max


Hersir
 Share

Recommended Posts

Hi,

have question regarding 3d max export.

I created rectangle plane in 3d max. Than tried to add custom shader material to it, and realised that uv.y is out of [0-1] range.

void main(void) {
    if(vUV.y > 0.5) {
        gl_FragColor = vec4( 1.0, 1.0, 0.0, 1.0);
    } else {
        gl_FragColor = vec4( 1.0, 0.0, 1.0, 1.0);
    }
}

After checking exported babylon file saw that uv.x is from 0-1 but uv.y 1-2

[0,1,1,1,1,2,1,2,0,2,0,1]

Some scaling could be applied?

Is that desired behaviour ?

Thanks.

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