Original Post
I see a code . /** Set true by camera if the node is visible in this frame. */ void setRenderedInLastFrame( bool enabled ); why care about last frame?
// If the object was rendered last frame, then it will probably be visible // this frame too, so just draw it. Otherwise, test if it is visible before drawing. if ( getRenderedInLastFrame() { Draw(); } else { // Test if the object is visible. If it is, then draw it. bool visible; visible = ExpensiveTestToDetermineVisibility(); if ( visible ) { Draw(); } }
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more