Expand description
WebGL parameter spoofing and readPixels noise injection.
Overrides WebGL1 and WebGL2 APIs to present a coherent, session-unique GPU
identity and apply deterministic noise to readPixels() output.
§Example
use stygian_browser::webgl_noise::{webgl_noise_script, WebGlProfile};
use stygian_browser::noise::{NoiseEngine, NoiseSeed};
let engine = NoiseEngine::new(NoiseSeed::from(42_u64));
let js = webgl_noise_script(&WebGlProfile::nvidia_rtx_3060(), &engine);
assert!(js.contains("RTX 3060"));
assert!(js.contains("__stygian_webgl_noise"));Structs§
- Context
Attributes - WebGL context attributes returned by
getContextAttributes(). - Shader
Precision Profile - Shader precision format values for a GPU profile.
- WebGl
Profile - A complete WebGL device identity profile.
Functions§
- webgl_
noise_ script - Generate the WebGL noise injection script for a given profile and engine.