gooseberry request:

Attempt to select closest bones when possible.

Occlusion query selection does't support this well because we can't
really derive depth information from occlusion tests. May be possible to
improve this somewhat in the future.
This commit is contained in:
2014-09-24 18:02:40 +02:00
parent 345b16601c
commit fc3753b8f6
6 changed files with 31 additions and 15 deletions

View File

@@ -127,7 +127,7 @@ void GPU_select_begin(unsigned int *buffer, unsigned int bufsize, rctf *input, c
}
else if (mode == GPU_SELECT_NEAREST_SECOND_PASS) {
glEnable(GL_DEPTH_TEST);
glDepthMask(GL_TRUE);
glDepthMask(GL_FALSE);
glDepthFunc(GL_EQUAL);
}
}