well, why do you think I work on the prebaking at the moment? :) there is v1 into the trunk in materials.utils.LightPrebaker;
if this would not be applicable, I would add extra custom handler in material, where same draw command would be done into a tmp bmd. this bmd, would be set as the bitmap of the material until you decide to restart the WhiteShadingMaterial with the
unshaded version of the bmd. Fabrice On Jun 15, 2009, at 11:17 AM, ben wrote:
Hi, I'm in need with a WhiteShadingBitmapMaterial but due to some perf, I would like to use a kind of WhiteShadingBitmapMaterialCache : the best thing would be to render triangle depending on light source once, then use the result as BitmapMaterial. This could be a real extend to shadingmaterial for anyone who needs to create a shading depending on light but don't need to move the object and light moreafter. So I've tryed to implement it as a BitmapContainer but get problem to integrate the light parameter or embed a CenterLightingMaterial. I've tryed to play ith the renderTriangle method of the WhiteShadingBitmapMaterial, I've also tryed some other things it would be a shame to reveal (as they were mainly drived by desperation). Would have someone a solution, or Fabrice do you think they're better ways to achieve this (I'm sure you do, but would you tell me ?). Thanks
