Merge pull request #506 from tomaka/doc-fix

Small documentation fix in viewport
This commit is contained in:
tomaka 2017-06-08 11:48:50 +02:00 committed by GitHub
commit 7918ec2033

View File

@ -132,10 +132,11 @@ pub struct Viewport {
/// Minimum and maximum values of the depth.
///
/// The values `-1.0` to `1.0` of each vertex's Z coordinate will be mapped to this
/// The values `0.0` to `1.0` of each vertex's Z coordinate will be mapped to this
/// `depth_range` before being compared to the existing depth value.
///
/// This is equivalents to `glDepthRange` in OpenGL.
/// This is equivalents to `glDepthRange` in OpenGL, except that OpenGL uses the Z coordinate
/// range from `-1.0` to `1.0` instead.
pub depth_range: Range<f32>,
}