tjheldna Posted June 8, 2013 Share Posted June 8, 2013 Hi all, I'm having an issue with the spec map. I'm using the dynamic diffuse+normal+specular.shader. In the image below the spec texture is mainly black with the mossy bits whiter. Now looking at the teapot the texture is just showing the entire texture with specular where I would expect the brick parts would have mainly no spec, like it's ignoring the map. I have tested with an entirely black spec map with no change. Don't know if I'm doing something wrong or it's a bug? Cheers! Link to comment Share on other sites More sharing options...
shadmar Posted June 8, 2013 Share Posted June 8, 2013 Specular color defaults to black. Set it white. Annoying yes. But in your pic alpha is 0. HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
tjheldna Posted June 8, 2013 Author Share Posted June 8, 2013 Hi Shadmar, I've just tried setting the spec to white and the alpha = 255 still not difference. Even if I change the specular colour it does nothing. Playing around with LIght mapped material's the specular map works fine. It's just the Dynamic that I can't get it to make any difference. Link to comment Share on other sites More sharing options...
tjheldna Posted June 8, 2013 Author Share Posted June 8, 2013 Ok I fluked this. It looks like the spec in diffuse+normal+specular.shader (Dynamic) under OpenGL 2.1 has some code missing. Looking at the OpenGL ES 2.0 These lines are missing..... uniform sampler2D texture2;//specular map //Specular map color_specular *= texture2D(texture2,ex_texcoords0); lighting_specular *= color_specular; As soon as I added them in the specular map started to work. Link to comment Share on other sites More sharing options...
shadmar Posted June 8, 2013 Share Posted June 8, 2013 Ah you're right Should probably post as bug report. which this was.. HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Admin Posted June 21, 2013 Share Posted June 21, 2013 No files. Link to comment Share on other sites More sharing options...
Recommended Posts