mirror of
https://github.com/overte-org/overte.git
synced 2025-08-15 16:09:34 +02:00
Normalize when we render the ground. This shouldn't be necessary, but it
looks like various parts of the code rely on RESCALE_NORMAL, which is set but not unset in avatar/Head/Hand. We'll have to look at that more closely later on.
This commit is contained in:
parent
ca90a91df4
commit
36ae7dbd48
1 changed files with 2 additions and 0 deletions
|
@ -2967,6 +2967,7 @@ void Application::displaySide(Camera& whichCamera) {
|
|||
if (_renderGroundPlaneOn->isChecked()) {
|
||||
// draw grass plane with fog
|
||||
glEnable(GL_FOG);
|
||||
glEnable(GL_NORMALIZE);
|
||||
const float FOG_COLOR[] = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
glFogfv(GL_FOG_COLOR, FOG_COLOR);
|
||||
glFogi(GL_FOG_MODE, GL_EXP2);
|
||||
|
@ -2981,6 +2982,7 @@ void Application::displaySide(Camera& whichCamera) {
|
|||
_geometryCache.renderSquare(GRASS_DIVISIONS, GRASS_DIVISIONS);
|
||||
glPopMatrix();
|
||||
glDisable(GL_FOG);
|
||||
glDisable(GL_NORMALIZE);
|
||||
|
||||
renderGroundPlaneGrid(EDGE_SIZE_GROUND_PLANE, _audio.getCollisionSoundMagnitude());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue