Fix wireframe rendering
PiperOrigin-RevId: 919100432 Change-Id: I2931d793ab9639bdaaad11f6d77a77aa14e43b8a
This commit is contained in:
committed by
Copybara-Service
parent
88a293b5e4
commit
585be6cee5
@@ -232,6 +232,8 @@ void Renderer::DoRender(int width, int height) {
|
|||||||
draw_mode = mjDRAW_MODE_SEGMENTATION;
|
draw_mode = mjDRAW_MODE_SEGMENTATION;
|
||||||
} else if (scene_.flags[mjRND_DEPTH]) {
|
} else if (scene_.flags[mjRND_DEPTH]) {
|
||||||
draw_mode = mjDRAW_MODE_DEPTH;
|
draw_mode = mjDRAW_MODE_DEPTH;
|
||||||
|
} else if (scene_.flags[mjRND_WIREFRAME]) {
|
||||||
|
draw_mode = mjDRAW_MODE_WIREFRAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
mjrRenderRequest reqs[2];
|
mjrRenderRequest reqs[2];
|
||||||
@@ -285,6 +287,8 @@ void Renderer::DoReadPixels(int width, int height, unsigned char* rgb) {
|
|||||||
draw_mode = mjDRAW_MODE_SEGMENTATION;
|
draw_mode = mjDRAW_MODE_SEGMENTATION;
|
||||||
} else if (scene_.flags[mjRND_DEPTH]) {
|
} else if (scene_.flags[mjRND_DEPTH]) {
|
||||||
draw_mode = mjDRAW_MODE_DEPTH;
|
draw_mode = mjDRAW_MODE_DEPTH;
|
||||||
|
} else if (scene_.flags[mjRND_WIREFRAME]) {
|
||||||
|
draw_mode = mjDRAW_MODE_WIREFRAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
mjrRenderTargetConfig config;
|
mjrRenderTargetConfig config;
|
||||||
|
|||||||
Reference in New Issue
Block a user