Jump to content

Diffuse animated materials problem


Recommended Posts

1 ) Using diffuse animated shader with a texture only, it shows a normal map : not optimized

 

2) Using diffuse animated shader and no texture diffuse, only a material :

it shows also a normal map

 

3) Using diffuse animated shader and no texture diffuse,only a material :

the material is very blakc not original materials color even if we change it under material editor

post-3271-0-35247900-1397580455.jpg

post-3271-0-96948000-1397580560_thumb.jpg

post-3271-0-39740700-1397580657.jpg

Stop toying and make games

Link to comment
Share on other sites

That is a copy/paste bug probably (remove/comment out these lines from the shader) :

 

uniform sampler2D texture1;//normal map
uniform sampler2D texture2;//specular map

 

 normal = texture(texture1,ex_texcoords0).xyz * 2.0 - 1.0;

 

 normal = ex_tangent*normal.x + ex_binormal*normal.y + ex_normal*normal.z;

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

  • 4 weeks later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...