Renamed How to 'Turn Off' the shadows to /How to remove the shadows
commited
commit
5ab5fce1442410469004027f26d37cb9358d9fd5
... | ... | @@ -31,3 +31,4 @@ Build/Why did the character break when I edit it%3F.md: Build/Why did the charac |
31 | 31 | break when I edit it?.md |
32 | 32 | Blocks/How to make a car.md: Build/How to make a car.md |
33 | 33 | Wisper Dev.md: Wispered.md |
34 | How to 'Turn Off' the shadows.md: How to remove the shadows.md |
... | ... | @@ -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 |