Jump to content

Recommended Posts

Posted

Hey I would like to ask you where I can find the shader code for example changing the light model ( I think it's phong now ) ?

I can't find it in the mesh.frag shader, but I saw in the Lighting folder for example in the DirectionalLight.frag file , that there are some modifications, which looks like that what I'm searching for.But now the question is, which vertexshader do that lighting-pixelshaders use ?

I need to add the Tangent and Binormal variables to create a anisotropic material.

 

EDIT: I forget, it's a deffered renderer :D So is it possible to get the tangent in the lighting shader ? Caus' I need the normal ( is available ) and the tangent -> compute the binormal.

 

 

Thanks wink.png

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.

×
×
  • Create New...