OSL shader language question
Patrick Hodoul <patrick.hodoul@...>
OCIOv2 now generates an OSL shader program. But I face some irritating syntax changes to accommodate OSL when generating the shader code. To simplify the generation of the code, I would like to write something like:
color4 color = res;
color = color4(vector(res.x, res.y, res.z), res.w);or
color.rgb = color(res.x, res.y, res.z);
color.a = res.w;
Following the really helpful 'operator overloading' idea (that I use a lot) I was wondering if there is a way to implement "color = res;" and also "res = color;"