Set Light: Difference between revisions
Nikitaivanov (talk | contribs)  (Created page with "Changes the direction that light falls onto your blocks. (Ignore the Position input, it's not currently used for anything.) /uploads/Set Light.png  == Tip of the day, by Potato Chan == If your game is in a top-down view that doesn't need shadows, there are 2 ways to remove them: 1. Set the light angle to the same as the camera angle. (There is some weird shadow bleed.) 2. Set Camera with a very high Y if your game is top-down; otherwise, move it opposite...")  | 
				-u ndefined- (talk | contribs)  m (Add infobox, fix numerical list and consistency)  | 
				||
| Line 1: | Line 1: | ||
{{Block  | |||
|image=Set_Light.png  | |||
|type=s  | |||
|folder=Game  | |||
|input1={{Port|e|Before}}  | |||
|input2={{Port|v|Position}}  | |||
|input3={{Port|r|Rotation}}  | |||
|output1={{Port|e|After}}  | |||
}}  | |||
Changes the direction that light falls onto your blocks. (Ignore the Position input, it's not currently used for anything.)  | Changes the direction that light falls onto your blocks. (Ignore the Position input, it's not currently used for anything.)  | ||
==   | == Notes ==  | ||
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:  | ||
# 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.  | |||
[[File:  | [[File:Set_Light_remove_shadows.jpg]]  | ||
<sub>(From Tip-of-the-day, provided by Potato Chan.)</sub>  | |||
[[Category:Blocks]]  | [[Category:Blocks]]  | ||
Revision as of 14:40, 20 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. (Ignore the Position input, it's not currently used for anything.)
Notes
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.)
