Advertisement Jump to content
Alex D

OpenGL Doing fun stuff strictly in a fragment shader: how to do perspective and draw meaningful scenes?

This topic is 474 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

This question isn't as much about how to do stuff as it is about how to find existing tutorials on doing this stuff. I just can't seem to find the right search terms.

I want to understand and do stuff like this:

Or this:

Is there a name for that? What techniques will I need? I understand that a fragment shader takes pixel coordinates and returns the color of that pixel. Basically, if I need to draw a 3D scene, I need to implement a basic 3D engine and a rasterizer - all in the fragment shader?


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!