Set Light: Difference between revisions
-u ndefined- (talk | contribs) No edit summary  | 
				No edit summary  | 
				||
| (One intermediate revision by one other user not shown) | |||
| Line 9: | Line 9: | ||
}}  | }}  | ||
Changes the direction that light falls onto your blocks.   | Changes the direction that light falls onto your blocks.  | ||
The position input is currently unused.  | |||
==   | == Example ==  | ||
If your game is in a top-down view that doesn't need shadows, there are 2 ways to remove them:  | If your game is in a top-down view that doesn't need shadows, there are 2 ways to remove them:  | ||
| Line 18: | Line 19: | ||
# [[Set Camera]] with a very high Y position if your game is top-down; otherwise, move it opposite the direction it's facing.  | # [[Set Camera]] with a very high Y position if your game is top-down; otherwise, move it opposite the direction it's facing.  | ||
{{Image|  | {{Image|Set_Light_remove_shadows.jpg}}  | ||
<sub>(From Tip-of-the-day, provided by Potato Chan.)</sub>  | <sub>(From Tip-of-the-day, provided by Potato Chan.)</sub>  | ||
[[Category:Blocks]]  | [[Category:Blocks]]  | ||
Latest revision as of 13:11, 27 May 2024
Set Light
  | Type | Script block | 
| Collider | None | 
| Folder | Game | 
| Ports | |
|---|---|
| Inputs |  Before Position Rotation  | 
| Outputs |  After | 
Changes the direction that light falls onto your blocks. The position input is currently unused.
Example
If your game is in a top-down view that doesn't need shadows, there are 2 ways to remove them:
- Set the light angle to the same as the camera angle. (There is some weird shadow bleed.)
 - Set Camera with a very high Y position if your game is top-down; otherwise, move it opposite the direction it's facing.
 

(From Tip-of-the-day, provided by Potato Chan.)