Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

13
How to light a terrain?
Post Body

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!

Author
User Suspended
Account Strength
0%
Suspended 2 months ago
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
n/a
Link Karma
784
Comment Karma
163
Profile updated: 4 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago