Skip to content

Commit

Permalink
Make comment more precise
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 493165357
Change-Id: Ibdd86de67caf0e528e20ff6829e8ed4a8b967d4c
  • Loading branch information
yuvaltassa authored and copybara-github committed Dec 6, 2022
1 parent 1408a63 commit 687bd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mujoco/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def render(self) -> np.ndarray:
near = self._model.vis.map.znear * extent
far = self._model.vis.map.zfar * extent

# Convert from [0 1] to depth in meters, see links below:
# Convert from [0 1] to depth in units of length, see links below:
# http://stackoverflow.com/a/6657284/1461210
# https://www.khronos.org/opengl/wiki/Depth_Buffer_Precision
pixels = near / (1 - self._depth_buffer * (1 - near / far))
Expand Down

0 comments on commit 687bd15

Please sign in to comment.