Jump to content
  • Advertisement
Sign in to follow this  
barp12

glTexGen Problem(read the bottom)

This topic is 3942 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i tried to write a shader and i get link error what the problem here is the shader:
uniform sampler2D DisplacementMap;
uniform float DisplacementMapSize;
void main()
{
	vec4 Pos;
	Pos = gl_Vertex;
	vec2 DisTexCoord;
	DisTexCoord.x = Pos.x/DisplacementMapSize;
	DisTexCoord.y = Pos.z/DisplacementMapSize;
	vec4 color = texture2DLod(DisplacementMap,DisTexCoord,0.0);
	gl_Position = gl_ModelViewProjectionMatrix * Pos;

} 
[Edited by - barp12 on September 30, 2007 6:10:26 AM]

Share this post


Link to post
Share on other sites
Advertisement
i dont recive any errors just Link faild error and i found the problem my Graphic card doesn't support textures in Vertex Shader
now i have new problem i trying to use glTexGen to genarate texcoord for Terrain and i getting weird result does anyone can show me example to use glTexGen For Terrain.

Share this post


Link to post
Share on other sites
You really need to be more specific if you want other people to be able to help you. Put your mind together and be *specific*. Post some code snippets, error messages, etc. What link error(s) do you get? The compiler must be showing something. You can get a link error for every single function mankind (and aliens for that matter [wink]) has ever written, so saying that you get a link error without specifying the error message is like trying to hunt an elephant* with a needle. It really won't get the job done. Would it?

*Not to mention it's illegal to hunt an elephant!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!