Aaaanyway, I finally found a solution to the RenderBin bug; Each Shape has a Material which inturn has many Passes. The problem was extracting the Pass and coupling it with the shape it represents. This eventually meant that a new Shape/Pass pairing had to be per pass per object per frame! The number of objects that were created was herrendous.
The solution was, as kindly donated by kevglass, was to get rid of Material and introduce the Passes straight into Shape. But, when introducting this, you create a Map.Entry
No comments:
Post a Comment