Jump to content

Vex vs Vex nodes shaders


Recommended Posts


I was recently thinking, why should I (or shouldn't) write shaders (for example to render realistic volumes) in vex language in vex code editor and not to use vex nodes?

So My question is simple - are we able to do "more" by writing shaders "by hand"?

(the only additional thing i see now is that we can define functions with vex code - are there some pros more?)

Thank you :)

Link to comment
Share on other sites

just a few things i can thing of

for practical reasons it can be more flexible to write a code mainly in more complex shaders with several conditions and loops

there is several useful functions not available as VOP node, but since you have inline VOP, it's not a problem

in VEX you can use arrays, you can also specify UI more precisely than in VOPs with pragmas and VEX preprocessor

on the other hand VOPs are great for quick shaders or shaders you want to alter when used many times, they are saved with file and don't need to be saved as digital asset

it depends on you what you decide to use, performance wise they are the same since VOPs are converted to VEX code and compiled

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.

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