depthRange.glsl 403 B

1234567891011121314
  1. /**
  2. * A built-in GLSL vec2 constant for defining the depth range.
  3. * This is a workaround to a bug where IE11 does not implement gl_DepthRange.
  4. *
  5. * @alias czm_depthRange
  6. * @glslConstant
  7. *
  8. * @example
  9. * // GLSL declaration
  10. * float depthRangeNear = czm_depthRange.near;
  11. * float depthRangeFar = czm_depthRange.far;
  12. *
  13. */
  14. const czm_depthRangeStruct czm_depthRange = czm_depthRangeStruct(0.0, 1.0);