RobLoach / node-raylib

Node.js bindings for Raylib
https://robloach.github.io/node-raylib/
Other
237 stars 20 forks source link

examples/shaders/shaders_and_uniforms.js #112

Closed konsumer closed 2 years ago

konsumer commented 2 years ago

In raylib4 branch, I get error when I run node examples/shaders/shaders_and_uniforms.js:

/home/konsumer/Documents/otherdev/node-raylib/examples/shaders/shaders_and_uniforms.js:26
const SH_Grayscaler = r.LoadShaderCode(GLSL_Grayscaler.vert, GLSL_Grayscaler.frag)
                        ^

TypeError: r.LoadShaderCode is not a function
    at Object.<anonymous> (/home/konsumer/Documents/otherdev/node-raylib/examples/shaders/shaders_and_uniforms.js:26:25)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47