mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 05:02:04 -08:00
Consistent naming of webgl properties
Always use "webgl:" instead of "webGl:"
This commit is contained in:
parent
41bc102216
commit
1532d7bb31
3 changed files with 13 additions and 13 deletions
18
README.md
18
README.md
|
|
@ -358,17 +358,17 @@ Camoufox supports spoofing WebGL parameters, supported extensions, context attri
|
|||
|
||||
| Property | Description | Example |
|
||||
| ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||
| webGl:renderer | Spoofs the name of the unmasked WebGL renderer. | `"NVIDIA GeForce GTX 980, or similar"` |
|
||||
| webGl:vendor | Spoofs the name of the unmasked WebGL vendor. | `"NVIDIA Corporation"` |
|
||||
| webGl:supportedExtensions | An array of supported WebGL extensions ([full list](https://registry.khronos.org/webgl/extensions/)). | `["ANGLE_instanced_arrays", "EXT_color_buffer_float", "EXT_disjoint_timer_query", ...]` |
|
||||
| webgl:renderer | Spoofs the name of the unmasked WebGL renderer. | `"NVIDIA GeForce GTX 980, or similar"` |
|
||||
| webgl:vendor | Spoofs the name of the unmasked WebGL vendor. | `"NVIDIA Corporation"` |
|
||||
| webgl:supportedExtensions | An array of supported WebGL extensions ([full list](https://registry.khronos.org/webgl/extensions/)). | `["ANGLE_instanced_arrays", "EXT_color_buffer_float", "EXT_disjoint_timer_query", ...]` |
|
||||
| webgl:contextAttributes | A dictionary of WebGL context attributes. | `{"alpha": true, "antialias": true, "depth": true, ...}` |
|
||||
| webgl2:contextAttributes | The same as `webgl:contextAttributes`, but for WebGL2. | `{"alpha": true, "antialias": true, "depth": true, ...}` |
|
||||
| webGl:parameters | A dictionary of WebGL parameters. Keys must be GL enums, and values are the values to spoof them as. | `{"2849": 1, "2884": false, "2928": [0, 1], ...}` |
|
||||
| webGl2:parameters | The same as `webGl:parameters`, but for WebGL2. | `{"2849": 1, "2884": false, "2928": [0, 1], ...}` |
|
||||
| webGl:shaderPrecisionFormats | A dictionary of WebGL shader precision formats. Keys are formatted as `"<shaderType>,<precisionType>"`. | `{"35633,36336": {"rangeMin": 127, "rangeMax": 127, "precision": 23}, ...}` |
|
||||
| webGl2:shaderPrecisionFormats | The same as `webGL:shaderPrecisionFormats`, but for WebGL2. | `{"35633,36336": {"rangeMin": 127, "rangeMax": 127, "precision": 23}, ...}` |
|
||||
| webgl:shaderPrecisionFormats:blockIfNotDefined | If set to `true`, only the shader percisions in `webGl:shaderPrecisionFormats` will be passed. Everything else will be blocked. | `true` |
|
||||
| webgl2:shaderPrecisionFormats:blockIfNotDefined | If set to `true`, only the shader percisions in `webGl2:shaderPrecisionFormats` will be passed. Everything else will be blocked. | `true` |
|
||||
| webgl:parameters | A dictionary of WebGL parameters. Keys must be GL enums, and values are the values to spoof them as. | `{"2849": 1, "2884": false, "2928": [0, 1], ...}` |
|
||||
| webgl2:parameters | The same as `webgl:parameters`, but for WebGL2. | `{"2849": 1, "2884": false, "2928": [0, 1], ...}` |
|
||||
| webgl:shaderPrecisionFormats | A dictionary of WebGL shader precision formats. Keys are formatted as `"<shaderType>,<precisionType>"`. | `{"35633,36336": {"rangeMin": 127, "rangeMax": 127, "precision": 23}, ...}` |
|
||||
| webgl2:shaderPrecisionFormats | The same as `webGL:shaderPrecisionFormats`, but for WebGL2. | `{"35633,36336": {"rangeMin": 127, "rangeMax": 127, "precision": 23}, ...}` |
|
||||
| webgl:shaderPrecisionFormats:blockIfNotDefined | If set to `true`, only the shader percisions in `webgl:shaderPrecisionFormats` will be passed. Everything else will be blocked. | `true` |
|
||||
| webgl2:shaderPrecisionFormats:blockIfNotDefined | If set to `true`, only the shader percisions in `webgl2:shaderPrecisionFormats` will be passed. Everything else will be blocked. | `true` |
|
||||
|
||||
</details>
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ index db60868f65..afed6eeb7c 100644
|
|||
|
||||
switch (pname) {
|
||||
case dom::WEBGL_debug_renderer_info_Binding::UNMASKED_RENDERER_WEBGL:
|
||||
+ if (auto value = MaskConfig::GetString("webGl:renderer")) {
|
||||
+ if (auto value = MaskConfig::GetString("webgl:renderer")) {
|
||||
+ ret = Some(value.value());
|
||||
+ break;
|
||||
+ }
|
||||
|
|
@ -253,7 +253,7 @@ index db60868f65..afed6eeb7c 100644
|
|||
break;
|
||||
|
||||
case dom::WEBGL_debug_renderer_info_Binding::UNMASKED_VENDOR_WEBGL:
|
||||
+ if (auto value = MaskConfig::GetString("webGl:vendor")) {
|
||||
+ if (auto value = MaskConfig::GetString("webgl:vendor")) {
|
||||
+ ret = Some(value.value());
|
||||
+ break;
|
||||
+ }
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@
|
|||
{ "property": "AudioContext:sampleRate", "type": "uint" },
|
||||
{ "property": "AudioContext:outputLatency", "type": "double" },
|
||||
{ "property": "AudioContext:maxChannelCount", "type": "uint" },
|
||||
{ "property": "webGl:renderer", "type": "str" },
|
||||
{ "property": "webGl:vendor", "type": "str" },
|
||||
{ "property": "webgl:renderer", "type": "str" },
|
||||
{ "property": "webgl:vendor", "type": "str" },
|
||||
{ "property": "webgl:supportedExtensions", "type": "array" },
|
||||
{ "property": "webgl:parameters", "type": "dict" },
|
||||
{ "property": "webgl2:parameters", "type": "dict" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue