#GPU geometry with Graphics.DrawProceduralNow() not working

1 messages · Page 1 of 1 (latest)

proper pier
#

So I'm trying to create a mesh straight on the GPU, everything I've tried hasn't worked, the buffers (as far as I'm aware) are being populated correctly and from what i can tell, the shader should work, but when the program is run, I get nothing. it runs, but thats it.
Any ideas

remote grail
# proper pier

You need to have the same reference in shader and script SetBuffer function. The script starts with _ while the shader version does not

proper pier
cursive hornet
# proper pier

Did you step through the code to make sure all the data is correct on the C# side? Especially during the draw call.

#

Thinking about it, you would probably need to assign an object transform matrix to the material and perhaps some other stuff as well.

#

And just to confirm, this is in BIRP, right?

#

Another thing that could be related is the fact that you're invoking it in update.

#

And not in OnRenderObject or similar render callback.