Login  Register

Re: RenderState(s) reuse...

Posted by gouessej on Dec 24, 2017; 9:55pm
URL: https://forum.jogamp.org/RenderState-s-reuse-tp4038290p4038434.html

I would use the design pattern "flyweight" by creating custom material states storing common information into a single object. That way, each spatial would use a separate render state but the heavy data would be in a single place.
Julien Gouesse | Personal blog | Website