Skip to main content

Module webgl_noise

Module webgl_noise 

Source
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§

ContextAttributes
WebGL context attributes returned by getContextAttributes().
ShaderPrecisionProfile
Shader precision format values for a GPU profile.
WebGlProfile
A complete WebGL device identity profile.

Functions§

webgl_noise_script
Generate the WebGL noise injection script for a given profile and engine.