cvex_bsdf() vtransform

   1787   1   0
User Avatar
Member
11 posts
Joined: 7月 2005
Offline
I was wondering if anyone is having the same issue as me….

Using vtransform in my cvex_bsdf evaluation function does not seem to work. I am trying to transform ‘u’ from space:camera to spacebject.

If i pass in a matrix with the camera to object rotation(by using dihedral in vex)- then i am able to transform it.

Is this the correct behaviour? do “space:foo” lookups work in cvex_bsdf functions?

thanks
M
User Avatar
Member
4271 posts
Joined: 7月 2005
Offline
cvex shaders can be considered ‘external’ programs and have no information about the current rendering state. If you want to transform things around in your cvex shader its best to pass the matrix as a parameter.
if(coffees<2,round(float),float)
  • Quick Links