Note: lists.aswf.io will be down for maintenance on Monday, September 26th, starting at 9AM Pacific Time (4PM Monday September 26, 2022 UTC), for approximately one hour.
OSL shader language question
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;"