]> git.tdb.fi Git - libs/gl.git/commit
Properly scale the the bounding sphere for frustum culling
authorMikko Rasa <tdb@tdb.fi>
Mon, 28 Nov 2016 00:20:20 +0000 (02:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 28 Nov 2016 00:20:20 +0000 (02:20 +0200)
commit380e636ddeb5811cb5d87800c445638246269b62
tree8beedcafde68e7497150ef09564a68aa4765e682
parentd1e3975c163694d7bca6417463462be950019e5e
Properly scale the the bounding sphere for frustum culling

The original radius must be squared too.  Also, negative distances mean
the sphere is inside the frustum and should not be culled.
source/scene.cpp