WebGL
Khronos
 

WebGL EXT_polygon_offset_clamp Extension Draft Specification

Name

EXT_polygon_offset_clamp

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Members of the WebGL working group

Version

Last modified date: February 09, 2023
Revision: 2

Number

WebGL extension #50

Dependencies

Written against the WebGL API 1.0 specification.

Overview

This extension exposes the EXT_polygon_offset_clamp functionality to WebGL.

There are no WebGL-specific behavioral changes.

Consult the above extension for documentation, issues and new functions and enumerants.

When this extension is enabled:

IDL

[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_polygon_offset_clamp {
    const GLenum POLYGON_OFFSET_CLAMP_EXT = 0x8E1B;

    undefined polygonOffsetClampEXT(GLfloat factor, GLfloat units, GLfloat clamp);
};
  

New Functions

undefined polygonOffsetClampEXT(GLfloat factor, GLfloat units, GLfloat clamp)

New Tokens

any getParameter(GLenum pname)
A new enum POLYGON_OFFSET_CLAMP_EXT is accepted as the pname parameter.
pnamereturned type
POLYGON_OFFSET_CLAMP_EXTGLfloat

Revision History

Revision 1, 2023/01/26

Revision 2, 2023/02/09