-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.LoadShaderFromMemory
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Load shader from code strings and bind default locations
| Parameter | Default Value | Note |
|---|---|---|
| vsCode | String() | |
| fsCode | String() |
| Condition | Return Value |
|---|---|
| (always) | map |
fragSrc = raylib.LoadFileText("shaders/blur.glsl")
shader = raylib.LoadShaderFromMemory(null, fragSrc)
raylib.UnloadFileText fragSrc
// ... use shader ...
raylib.UnloadShader shader