Jump to content

VEX volume procedural shader: World space in CVEX shader?


Recommended Posts

Hi,

 

Probably an obscure question...

 

I am using the VEX Volume Procedural. It is working nicely but in the docs it states:

 

The following inputs parameters are available in the CVEX context used by the VEX Volume Procedural:

- P Position to evaluate, in object space.

 

Now I would actually like to get the world space position. It seems not that important but in my case I would to instance several (procedural holders) pointing to the same geometry shader and cvex shader.

 

Like I said, obscure question but it doesn't hurt to ask right?

 

Cheers,

Rog.

Link to comment
Share on other sites

As usual, posting a question in a forum leads to me finding the answer myself shortly after  :)

 

It turns out I can use the instancepoint() expression in a parameter on the cvex shader. That allows me query the world space transform of the instance currently being rendered and feed that into the cvex shader.

 

Rog.

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...