[Help needed] Panic value of invalid value when using setshadervalue with raylib-go-wasm #5377
Closed
deoxyimran
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please see the code below; the shader and loc are present (console shows) but I am getting a error on the value which is []float32 as you can see. I dont understand if this is a library bug or my bug!
vec := make([]float32, 3)
vec[0] = camPos.X
vec[1] = camPos.Y
vec[2] = camPos.Z
rl.SetShaderValue(
m.assetManager.Shaders["environment"],
m.assetManager.ShaderLocs["environment"][rl.ShaderLocVectorView],
vec,
rl.ShaderUniformVec3,
)
Beta Was this translation helpful? Give feedback.
All reactions