🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Shader on terrain problem

Started by
4 comments, last by Aerodactyl55 1 year, 9 months ago

#edit

Advertisement

What is the problem? What did you expect? The shader seems to be doing what it is supposed to do (output yellow color).

@Aerodactyl55 For some reasons the description of the problem got cut out, i updated it:


“The yellow is supposed to cover the whole ground, but it's covering only a part of it and it's moving with the camera.”

I don't think this related to the shader. Do you have some kind of frustum culling in place? If so, try disabling it. I think the gray parts come from your clear color (you can verify this by changing the clear color)

@Aerodactyl55 but if i use the code without shader everything works fine

I dont know the difference between the two codes, and I doubt its just what you showed. I suggest checking your matrices and/or render states.

Edit: I still think that the problem is related to some kind of culling/visibility test.

This topic is closed to new replies.

Advertisement