Created How to 'Turn Off' the shadows (markdown)
commited
commit
f109d87bd154c532b869f1682a0bb17c04d32f1d
... | ... | @@ -0,0 +1,26 @@ |
1 | # How to 'Turn Off' the shadows. |
|
2 | ||
3 | Sometimes in 2D games, we need to completely remove the shadows from the scene. Here is a simple way to do that. |
|
4 | ||
5 | 1. Set the camera **angle** to whatever is needed for the game. |
|
6 | ||
7 | 2. Set the light **angle** to the **same** angle as the camera. |
|
8 | ||
9 | Example: |
|
10 | ||
11 | That's all! |
|
12 | ||
13 | But there will perhaps be still fuzzy shadow bleed at edges. |
|
14 | ||
15 | ||
16 | ##For a perfect shadow removal |
|
17 | ||
18 | for a perfect shadow removal, we can move the camera very far from the scene. it is less convenient, but works perfectly. |
|
19 | ||
20 | For a top-down 2D game, we can set the camera Y value to 100. |
|
21 | ||
22 | here is an example using camera X=0 and Z=0, |
|
23 | ||
24 | Example:  |
|
25 | ||
26 | (you should use the appropriate camera X and Z values. Set The Y value to 100) |
|
... | ... | \ No newline at end of file |