katisss Posted February 17, 2013 Share Posted February 17, 2013 hi, i am just starting to play with vex and would vary a value based on camera distance? Thanks Quote Link to comment Share on other sites More sharing options...
symek Posted February 17, 2013 Share Posted February 17, 2013 Pz global variable is a distance from a screen to a surface. Also length(I), except the latter one is a distance from a ray origin to a surface, so it will differ from Pz for all but primary rays. 1 Quote Link to comment Share on other sites More sharing options...
katisss Posted February 18, 2013 Author Share Posted February 18, 2013 Just what i am looking for, thanks a lot. I should have posted in the Shader thread... Now i am trying to do random round spots on a surface. Any hints? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.