【Transitioning between VEX and RSL–在VEX和RSL之间转换– 材质模块 – Houdini帮助文档中文版】
The following table shows the equivalent mapping values for VEX and RSL.
—下面的这个表显示的是VEX和RSL等价的一个映射表:
| VEX | RSL |
| dPds | dPdu*du |
| dPds/Du(s) | dPdu |
| Du(P) | dPdu*du or Du(P)*du |
| Du(P)/Du(s) | dPdu or Du(P) |
| Du(s) | du |
| dPdt | dPdv*dv |
| dPdt/Dv(t) | dPdv |
| Dv(P) | dPdv*dv or Dv(P)*dv |
| Dv(P)/Dv(t) | dPdv or Dv(P) |
| Dv(t) | dv |
| n/a | Deriv(a,b) |
Differences——差别
| Keyword differences
关键字差别 |
RSL output = VEX export |
| Operator differences
操作符差别 |
RSL L.N := VEX dot(L, N) |
| Syntactic differences
语法差别 |
RSL color(1,1,1) := VEX {1,1,1} |
| Different functions
不同的函数 |
RSL faceforward() := VEXfrontface()
RSL lightsource() := VEX limport() |
| Behavioral differences
行为上的差别 |
RSL Du(P) := VEX Du(P)/Du(u) |
