Anything you want, though geeky topics will usually harvest the greatest response.
hello i would like to ask if : 1) i can pass arrays from my main program to my shader. 2) i can attach “user data” to a specified vertex in my main program so that the shader can read them.
@tralala said: hello i would like to ask if : 1) i can pass arrays from my main program to my shader. 2) i can attach “user data” to a specified vertex in my main program so that the shader can read them.
1) Yes 2) Yes, use vertex attributes
1) i searched in material and there is no setArray(“name”, float[]); 2) where do i find them, they are in Mesh class ?
@tralala said: 1) i searched in material and there is no setArray(“name”, float[]); 2) where do i find them, they are in Mesh class ?
You probably have to use Material.setParam() to do that, there isn’t a convenience method for the array types yet. The attributes are found in the Mesh class, each VertexBuffer is an attribute
thank you, can i create my own “attributes” or do i just “modify” the useless ones like “color”.
There’s no way to create your own at the moment. Just use one of the existing ones
Please create an account to get started.
Remember Me