Jump to content

bind vector array in shader


nuki

Recommended Posts

Edit: Dammit, I uploaded the wrong scene.....

I want to set point positions to a value from a vector array with a geometry shader. But somehow I cannot bind the vector array properly inside the shader, it will always return {0,0,0}. If I bind a vector directly it all works as expected, but I really need to pick my position vectors from an array.
If you have time, please take a look at the attached example scene which illustrates the problem.

 

 

 

array_cvex.hiplc

Edited by nuki
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...