Advertisement

Shader on terrain problem

Started by September 08, 2022 11:38 AM
4 comments, last by Aerodactyl55 2 years, 4 months ago

#edit

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

Advertisement

@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