Open Da-Krunch opened 5 years ago
Assuming (as I do...) that in a path tracer implementation we'd go for option 2, should we have some standard to define what units is depth supposed to be working in? this would be helpful for exchanging materials.
Thanks for reporting this! Both behaviors can be obtained, in fact. But the specular transmission description was confusing. I've expanded it to explain that transmission_color
scales the specular_btdf()
closure only when transmission_depth == 0
(which is the default). This results in fixed transmission tinting. When transmission_depth > 0
, transmission_color
doesn't scale the closure and instead an interior medium is defined where the tinting is governed by Beer's law.
Note that the OSL implementation currently doesn't handle medium absorption (i.e. ignores the transmission_depth
parameter), so it always scales the specular_btdf()
closure by transmission_color
.
Regarding the unit of transmission_depth
, it's expected to be specified in meters, as it is used to determine the medium extinction coefficient whose unit is 1/meter.
Hello,
I am finding what looks like a conflict in the documentation for transmission_color.
in the graph definition we see a coefficient to transmission: transmission_sheen_mix = transmission transmission_color specular_btdf(...) + (1 - transmission) * sheen_layer; That implies a constant (or textured) color plugged straight as a multiplier.
transmission_color: tint due to absorption transmission_depth: the distance travelled inside the material by white light before its color becomes exactly transmission_color by Beer's law This implies a depth-based effect. In this case texturing it is not recommendable as it would be a volume effect.
Which one should it be?