qdtk / openshadinglanguage

Automatically exported from code.google.com/p/openshadinglanguage
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

set 'varying' intelligently when reading user-data #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, all user-data reads (via getattribut() and via automatic parameter 
mapping) force the 
read data to always be "varying" because we don't have enough information from 
the renderer 
passed back to the OSL interpreter. This can be very inefficient.

I wonder if the RenderServices's has_userdata() method could help with that -- 
it can return 
whether the user-data being read is 'constant' (per object) or 'uniform' (per 
face) or 'varying' (per 
vertex) and whether it would have derivatives or not.

Original issue reported on code.google.com by rene.lim...@gmail.com on 11 Jan 2010 at 7:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by rene.lim...@gmail.com on 13 Jan 2010 at 1:05

GoogleCodeExporter commented 9 years ago
Moot now that we are doing single-point shading

Original comment by larrygr...@gmail.com on 23 Feb 2011 at 11:08