Hi all,
if i pass setShaderInput(“const”, 1) how can i get that number in the fragment shder?
Can you post some code as example?
Thanks
Bye
Hi all,
if i pass setShaderInput(“const”, 1) how can i get that number in the fragment shder?
Can you post some code as example?
Thanks
Bye
I don’t think you can pass a number like this. What i do is pass a
setShaderInput("const", Vec4(1,0,0,0))
then in the shader
in uniform float4 k_const
...
k_const.x - is your 1
Thanks