Replaced background color for consistency
commited
commit
6ca07d0b6ac921d0bb2815a9ec3e74b115eee5f4
... | ... | @@ -6,7 +6,7 @@ Sometimes in 2D games, we need to completely remove the shadows from the scene. |
6 | 6 | |
7 | 7 | Example: |
8 | 8 | |
9 | [[/uploads/IMG_20220625_154309.jpg]] |
|
9 | [[/uploads/remove_shadows_example1.png]] |
|
10 | 10 | |
11 | 11 | That's all! |
12 | 12 | |
... | ... | @@ -21,13 +21,13 @@ For a top-down **2D** game, we can set the camera **Y** value to a **very high** |
21 | 21 | |
22 | 22 | Here is an example using camera 0,100,0: |
23 | 23 | |
24 | [[/uploads/Screenshot_2023_0327_104154.png]] |
|
24 | [[/uploads/remove_shadows_example2.png]] |
|
25 | 25 | |
26 | 26 | (You should use your appropriate camera X and Z values. Set the Y value to a very high value.) |
27 | 27 | |
28 | 28 | For **3D** games, use the Rotate block to move the camera in the right direction: |
29 | 29 | |
30 | [[/uploads/IMG_20220625_160655.jpg]] |
|
30 | [[/uploads/remove_shadows_example3.png]] |
|
31 | 31 | |
32 | 32 | (Explanation for the vector value: If the camera's rotation is 0,0,0 ("no rotation"), the camera is looking in the positive Z direction, so moving it in the opposite direction pushes it further away. Rotating the camera from that default angle causes the back direction to rotate accordingly.) |
33 | 33 |