Files
OpenShadingLanguage/testsuite/mergeinstances-vararray/simple.osl
T
Larry Gritz 3a882f40b9 Bug fix: incorrect instance merging when unspecified-length arrays differed. (#656)
Because the altered data offset wasn't transferred from the instance
overrides to the instance's full symbol table, it was comparing the
default values rather than the actual values, so two instances that
should not have been merged, were merged.

Also fixed a (harmless) bug in ShadingSystemImpl::ShaderGroupBegin,
where the serialized group is parsed, where it was double-calling
Parameter() to add the parameters.

Fixes #655
2016-07-06 17:13:36 -07:00

8 lines
115 B
Plaintext

surface simple(
color a = color(0),
color b = color(0) )
{
printf("%f\n", a + b);
Ci = emission() * (a + b);
}