Baseline Widely available *
WebGLShaderPrecisionFormat æ¥å£æ¯WebGL API çä¸é¨åï¼å®è¡¨ç¤ºéè¿è°ç¨WebGLRenderingContext.getShaderPrecisionFormat()
è¿åä¿¡æ¯çä¿¡æ¯ã
WebGLShaderPrecisionFormat.rangeMin
以 2 为åºçæå°å¼çç»å¯¹å¼ç对æ°ã
WebGLShaderPrecisionFormat.rangeMax
å¯ä»¥è¡¨ç¤ºçæå¤§å¼çç»å¯¹å¼çåºæ°ä¸º 2 ç对æ°ã
WebGLShaderPrecisionFormat.precision
å¯ä»¥è¡¨ç¤ºç精度ä½çæ°ç®ãå¯¹äºæ´æ°ç±»åï¼è¿ä¸ªå¼æ»æ¯ 0ã
WebGLShaderPrecisionFormat
对象éè¿WebGLRenderingContext.getShaderPrecisionFormat()
æ¹æ³æ¥è¿åã
var canvas = document.getElementById("canvas");
var gl = canvas.getContext("webgl");
gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_FLOAT);
// WebGLShaderPrecisionFormat { rangeMin: 127, rangeMax: 127, precision: 23 }
è§æ ¼ æµè§å¨å
¼å®¹æ§ åè§
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4