diff options
| author | jussi | 2022-04-05 01:38:03 +0300 |
|---|---|---|
| committer | jussi | 2022-04-05 01:38:03 +0300 |
| commit | fbfe1e0cb6207b6c8afd42457cb1304c7264734f (patch) | |
| tree | beb8e4725b6e9842fee5f929ad3f3b24663a26d2 /API.md | |
| parent | 2a46afbf91c17463b1360faf7773a9aeb69b4e46 (diff) | |
| download | reilua-enhanced-fbfe1e0cb6207b6c8afd42457cb1304c7264734f.tar.gz reilua-enhanced-fbfe1e0cb6207b6c8afd42457cb1304c7264734f.tar.bz2 reilua-enhanced-fbfe1e0cb6207b6c8afd42457cb1304c7264734f.zip | |
Lights.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -547,6 +547,12 @@ HUEBAR_SELECTOR_HEIGHT HUEBAR_SELECTOR_OVERFLOW +## Globals - LightType + +LIGHT_DIRECTIONAL + +LIGHT_POINT + ## Types Raylib structs in Lua @@ -1151,6 +1157,24 @@ Get shader attribute location --- +> success = RL_SetShaderLocationIndex( Shader shader, int shaderLocationIndex, int location ) + +Set shader location index + +- Failure return false +- Success return true + +--- + +> location = RL_GetShaderLocationIndex( Shader shader, int shaderLocationIndex ) + +Get shader location index + +- Failure return false +- Success return int + +--- + > success = RL_SetShaderValueMatrix( Shader shader, int locIndex, Matrix mat ) Set shader uniform value ( matrix 4x4 ) @@ -3953,3 +3977,25 @@ Check icon pixel value - Success return bool --- + +## Lights - Basics + +--- + +> light = RL_CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader ) + +Create a light and get shader locations + +- Failure return -1 +- Success return int + +--- + +> success = RL_UpdateLightValues( Shader shader, Light light ) + +Send light properties to shader + +- Failure return false +- Success return true + +--- |
