Skip to content

Commit ea636e8

Browse files
authored
Add info to tutorial about sky colour
1 parent f2e7ce5 commit ea636e8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/content/docs/current/Guides/Your First Shader/3_composite_lighting.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ color.rgb *= blocklight + skylight + ambient + sunlight;
117117
Things should look something like this:
118118
![](../../../../../assets/beginner_tutorial/lighting1.webp)
119119

120+
:::note[Note]
121+
Don't worry if your sky isn't the same color. We'll fix that later!
122+
:::
123+
120124
## Sunlight
121125
Now, what about that sunlight? Well, if something is facing directly towards the sun, then we want it to be fully sunlit. On the other hand, if something is facing away from the sun, we want there to be no sunlight. So, we need a function that returns 1.0 if two vectors are facing in the same direction, and 0.0 if they are facing away from each other. Happily, we can use a dot product for this.
122126

0 commit comments

Comments
 (0)