Support reversed Z rendering and float32 offscreen depth buffer
Combined, both options greatly improve camera depth accuracy compared to OpenGL default Z mapping and int24 depth buffer. Requires GL_ARB_clip_control and ARB_depth_buffer_float extensions
This commit is contained in:
@@ -621,6 +621,24 @@ ENUMS: Mapping[str, EnumDecl] = dict([
|
||||
('mjFB_OFFSCREEN', 1),
|
||||
]),
|
||||
)),
|
||||
('mjtDepthMapping',
|
||||
EnumDecl(
|
||||
name='mjtDepthMapping',
|
||||
declname='enum mjtDepthMapping_',
|
||||
values=dict([
|
||||
('mjDB_NEGONETOONE', 0),
|
||||
('mjDB_ONETOZERO', 1),
|
||||
]),
|
||||
)),
|
||||
('mjtDepthPrecision',
|
||||
EnumDecl(
|
||||
name='mjtDepthPrecision',
|
||||
declname='enum mjtDepthPrecision_',
|
||||
values=dict([
|
||||
('mjDB_INT24', 0),
|
||||
('mjDB_FLOAT32', 1),
|
||||
]),
|
||||
)),
|
||||
('mjtFontScale',
|
||||
EnumDecl(
|
||||
name='mjtFontScale',
|
||||
|
||||
Reference in New Issue
Block a user