#Vertex tangent

6 messages · Page 1 of 1 (latest)

brazen trout
#

https://pastebin.com/dRPkq7xv - Model's vertex load loop;
https://pastebin.com/iK1VnGNx - Vertex shader
https://pastebin.com/e0M3aX1h - Fragment shader

Uncorrect Blinn-Phong lighting

What am I doing wrong?

#

Forgot to mention
the light source is located next to the diffuse lighting on the left

high olive
#

You can always use the output color of the fragment shader for debugging purposes. (Just output whatever variable you're interested in, and you will basically see its value on the whole screen.)

RenderDoc might also be able to check what is going on in your fragment shader, but I'm not quite sure how detailed that will be.

brazen trout
#

But this is not solution

#

I trying to understand, how to generate tangent for vertexes manualy

#

Tinyobj, how I can see dont provide this feature