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