|
![](/i/fill.gif) |
SharkD schrieb:
> #local Inc_Scale_Amount = Width;
> #local Dec_Scale_Amount = sqrt(3) / vlength(Inc_Scale_Amount);
What is "Width"?
It should be a scalar, otherwise you'll be running into trouble, as
you'd need an anisotropic media density (i.e. different density
depending on the orientation of the traversing ray) for a proper job.
Then if it is a scalar, the above values should actually be:
#local Inc_Scale_Amount = Width;
#local Dec_Scale_Amount = 1 / Width;
If you absolutely need it to be a vector, you'll probably want the
"thickness" to remain the same, i.e. retain the effective absorption in
Y direction; you'd achieve this by defining the values as:
#local Inc_Scale_Amount = Width;
#local Dec_Scale_Amount = 1 / Width.y;
Post a reply to this message
|
![](/i/fill.gif) |