Hello, I’m translating through a translator,
so most likely I can say something absurd.
I wanted to write ray tracing in rust + glsl.
I was able to draw a sphere something like this:
This code draws a sphere (just white circle, lol),
but there is a problem.
I don't know how to send a buffer or array to the shader.
How can I edit my code to support a certain number of balls?
Hello, I’m translating through a translator, so most likely I can say something absurd. I wanted to write ray tracing in rust + glsl. I was able to draw a sphere something like this:
main.rs:
vert_shader.glsl:
frag_shader.glsl:
This code draws a sphere (just white circle, lol), but there is a problem. I don't know how to send a buffer or array to the shader. How can I edit my code to support a certain number of balls?
Thanks