YouGroove Posted October 20, 2015 Share Posted October 20, 2015 I tried to use second UV from imported FBX, but it does not work ? Vertex code : //Attributes ... in vec2 vertex_texcoords0; in vec2 vertex_texcoords1; ... //Outputs out vec4 ex_color; out vec2 ex_texcoords0; out vec2 ex_texcoords1; ... void main() ... ex_texcoords0 = vertex_texcoords0; ex_texcoords1 = vertex_texcoords1; Fragment : //Uniforms uniform sampler2D texture0;//diffuse map uniform sampler2D texture1;//lightmap ... //Inputs in vec2 ex_texcoords0; in vec2 ex_texcoords1; .... //Modulate blend with diffuse map outcolor *= texture(texture0,ex_texcoords0) ; outcolor *= texture(texture1,ex_texcoords1) *0.5 ; Quote Stop toying and make games Link to comment Share on other sites More sharing options...
shadmar Posted October 20, 2015 Share Posted October 20, 2015 Hard to say without the fbx, your shader looks correct. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
YouGroove Posted October 20, 2015 Author Share Posted October 20, 2015 Thanks , i'll check on my side. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
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.