This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi guys, I'm trying to create a terrain with lighting and shadows, at the moment what I have is a flat terrain which uses a height map to change its y values and then tesselation which changes dependent on how close you are. This works all fine. However, now I want to add lighting and I'm super confused about it since all the things I see online use just a fragment and vertex shader, or those and a geometry shader. My current pipeline is vertex > tesselation control > tesselation evaluation > fragment. So when it comes to things like passing normals from vertex to fragment, I have no idea how to properly pass them through my tesselation shaders. Any advice would be greatly appreciated!
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/opengl/comm...