You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Nov 16, 2026
·
3 revisions
Load shader from code strings and bind default locations. If a code string is empty, the default vertex/fragment shader is used. Returns null on failure
Parameters
Parameter
Default Value
Note
vsCode
""
fsCode
""
Return value
Condition
Return Value
(always)
map
Notes
Example
fragSrc=raylib.LoadFileText("shaders/blur.glsl")
shader=raylib.LoadShaderFromMemory(null, fragSrc)
raylib.UnloadFileTextfragSrc// ... use shader ...raylib.UnloadShadershader