Light property functions and basic light example.

This commit is contained in:
jussi
2023-05-30 13:42:43 +03:00
parent 335321e3aa
commit e1cc1e9e27
13 changed files with 674 additions and 5 deletions

90
API.md
View File

@@ -6520,6 +6520,96 @@ Send light properties to shader
---
> success = RL.SetLightType( Light light, int type )
Set light type
- Failure return false
- Success return true
---
> success = RL.SetLightPosition( Light light, Vector3 position )
Set light position
- Failure return false
- Success return true
---
> success = RL.SetLightTarget( Light light, Vector3 target )
Set light target
- Failure return false
- Success return true
---
> success = RL.SetLightColor( Light light, Color color )
Set light color
- Failure return false
- Success return true
---
> success = RL.SetLightEnabled( Light light, bool enabled )
Set light enabled
- Failure return false
- Success return true
---
> type = RL.GetLightType( Light light )
Get light type
- Failure return false
- Success return int
---
> position = RL.GetLightPosition( Light light )
Get light position
- Failure return false
- Success return Vector3
---
> target = RL.GetLightTarget( Light light )
Get light target
- Failure return false
- Success return Vector3
---
> color = RL.GetLightColor( Light light )
Get light color
- Failure return false
- Success return Color
---
> enabled = RL.IsLightEnabled( Light light )
Get light enabled
- Failure return nil
- Success return boolean
---
## RLGL - General render state
---