GPU Shader Precision & WebGL2 Fingerprinting: Fix Profile Leaks

10 min read

A browser profile can report a WebGL renderer string of Intel UHD 620 and still contradict itself in a single shader precision query.

Picture a profile that reports Intel UHD 620 but returns highp float values in the fragment shader that a UHD 620 wouldn't. A one-bit difference in range is enough to make the whole profile internally inconsistent. Harsh? Maybe. But that's how deep GPU fingerprinting works.

The renderer string is the surface. Shader precision formats and WebGL2 parameters sit underneath. If a tool only changes the surface, the layers disagree, and anyone reading both will notice.

What We're Building

By the end of this tutorial, you'll understand:

  1. How getShaderPrecisionFormat() exposes driver-level GPU characteristics
  2. Which WebGL2 parameters create fingerprint surfaces that WebGL1 doesn't have
  3. How to spot shader precision mismatches in your own profiles
  4. Why extension-based tools struggle to keep these values consistent
  5. How to audit a profile's GPU values for internal consistency

This goes past the WebGL renderer string into the parameter space that's easy to miss if you assumed the basics were enough. If you're still catching up on multi-account browser fundamentals, start there first. This is education for QA, privacy work and testing your own sites, not a way around anyone's rules.

Prerequisites

Step 1: Understanding Shader Precision Formats

Every GPU handles floating-point math differently. GLSL shaders have three precision qualifiers — lowp, mediump, highp — and each one can map to different actual bit widths depending on your hardware.

Open your browser console and run this:

const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl2') || canvas.getContext('webgl');

function getPrecision(shaderType, precisionType) {
  const format = gl.getShaderPrecisionFormat(shaderType, precisionType);
  return {
    precision: format.precision,
    rangeMin: format.rangeMin,
    rangeMax: format.rangeMax
  };
}

console.log('Vertex HIGH_FLOAT:', getPrecision(gl.VERTEX_SHADER, gl.HIGH_FLOAT));
console.log('Fragment HIGH_FLOAT:', getPrecision(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT));
console.log('Fragment MEDIUM_FLOAT:', getPrecision(gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT));

The numbers below are illustrative, not measurements from specific hardware. Output on one discrete card might look like:

Vertex HIGH_FLOAT: {precision: 23, rangeMin: 127, rangeMax: 127}
Fragment HIGH_FLOAT: {precision: 23, rangeMin: 127, rangeMax: 127}
Fragment MEDIUM_FLOAT: {precision: 23, rangeMin: 127, rangeMax: 127}

And on different hardware, it might differ in places:

Vertex HIGH_FLOAT: {precision: 23, rangeMin: 127, rangeMax: 127}
Fragment HIGH_FLOAT: {precision: 23, rangeMin: 126, rangeMax: 127}
Fragment MEDIUM_FLOAT: {precision: 10, rangeMin: 15, rangeMax: 15}

Notice how a single rangeMin can differ? That's a driver-level difference. Changing a string doesn't touch it. The WebGL implementation queries the actual GPU driver and reports what the hardware supports.

So a renderer string that names one GPU, sitting next to precision values from another, describes a machine that doesn't exist. Anyone comparing the two sees the contradiction at once.

Step 2: The WebGL2 Fingerprint Expansion

WebGL2 adds fingerprint surfaces that WebGL1 doesn't expose. If you only audit WebGL1, you're missing a good share of the picture.

Uniform Buffer Object layouts: WebGL2 introduced UBOs, and their memory alignment varies by GPU architecture.

const gl = canvas.getContext('webgl2');
if (gl) {
  console.log('MAX_UNIFORM_BUFFER_BINDINGS:', gl.getParameter(gl.MAX_UNIFORM_BUFFER_BINDINGS));
  console.log('MAX_UNIFORM_BLOCK_SIZE:', gl.getParameter(gl.MAX_UNIFORM_BLOCK_SIZE));
  console.log('UNIFORM_BUFFER_OFFSET_ALIGNMENT:', gl.getParameter(gl.UNIFORM_BUFFER_OFFSET_ALIGNMENT));
}

These values vary by GPU architecture and driver. Apple Silicon GPUs, for one, have their own alignment requirements. Read the numbers off a real machine rather than trusting a table in a blog post, ours included.

Transform Feedback precision: WebGL2's transform feedback captures GPU computation output. Run a small shader, capture the result, compare against known hardware signatures. The floating-point rounding behavior differs by GPU.

Additional texture formats: WebGL2 supports more texture formats than WebGL1. Which formats are available, and at what max sizes, creates another fingerprint dimension.

const gl2 = canvas.getContext('webgl2');
console.log('MAX_3D_TEXTURE_SIZE:', gl2.getParameter(gl2.MAX_3D_TEXTURE_SIZE));
console.log('MAX_ARRAY_TEXTURE_LAYERS:', gl2.getParameter(gl2.MAX_ARRAY_TEXTURE_LAYERS));
console.log('MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:',
  gl2.getParameter(gl2.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS));

Each query returns hardware-specific values. The combination is fairly distinctive, and a profile whose reported GPU doesn't match these values describes a machine that doesn't exist.

Step 3: Finding Inconsistencies in Your Profiles

Here's a quick diagnostic script. Run it in your browser profile and compare against a real machine with the GPU the profile reports.

function auditGPUSignature() {
  const canvas = document.createElement('canvas');
  const gl = canvas.getContext('webgl2') || canvas.getContext('webgl');
  const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');

  const signature = {
    renderer: debugInfo ? gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) : 'blocked',
    vendor: debugInfo ? gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL) : 'blocked',

    // Shader precision (the deep signals)
    vertexHighFloat: gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_FLOAT),
    fragmentHighFloat: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT),
    fragmentMediumFloat: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT),
    fragmentLowFloat: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_FLOAT),

    // Core parameters
    maxTextureSize: gl.getParameter(gl.MAX_TEXTURE_SIZE),
    maxRenderbufferSize: gl.getParameter(gl.MAX_RENDERBUFFER_SIZE),
    maxVertexAttribs: gl.getParameter(gl.MAX_VERTEX_ATTRIBS),

    // WebGL2 specific (if available)
    isWebGL2: !!canvas.getContext('webgl2')
  };

  if (signature.isWebGL2) {
    const gl2 = canvas.getContext('webgl2');
    signature.uniformBufferOffsetAlignment = gl2.getParameter(gl2.UNIFORM_BUFFER_OFFSET_ALIGNMENT);
    signature.max3DTextureSize = gl2.getParameter(gl2.MAX_3D_TEXTURE_SIZE);
    signature.maxArrayTextureLayers = gl2.getParameter(gl2.MAX_ARRAY_TEXTURE_LAYERS);
  }

  return signature;
}

console.table(auditGPUSignature());

Run this in your profile. Then run it on a real device with the GPU the profile reports. The values should agree, not just the renderer string but the precision formats and the WebGL2 parameters.

If they don't? The profile contradicts itself, and that's worth fixing before it shows up as odd behaviour in your QA or test results.

Step 4: Why Extension-Based Tools Struggle Here

For this specific vector, JavaScript-level overrides can't reliably fix shader precision mismatches.

Here's why.

When you call gl.getShaderPrecisionFormat(), the browser queries the GPU driver directly. The returned object is constructed by the WebGL implementation in C++, not JavaScript.

Some extension-based tools try to intercept getShaderPrecisionFormat with a Proxy or by overriding the function on the prototype. But WebGL contexts are tricky — they're created fresh, the prototype chain is complex, and timing matters. Worker threads can request their own WebGL contexts that don't inherit main-thread overrides.

A profile can look consistent on the main thread yet disagree with itself when the same query runs in a Web Worker, because a worker can request its own WebGL context that doesn't inherit main-thread overrides. (Annoying to debug, honestly.)

An engine modified at the C++ level can return consistent values because the change applies before the WebGL context is ever created. Extension-based tools patch after the fact, and the patches don't reach everywhere.

JustBrowser takes the engine route for its Chrome profiles: a custom Chromium engine with native C++ integration, patched on every upstream release. Its 40+ identity parameters are set per profile so that each profile's values stay consistent with one another. Configuring that by hand isn't possible, since it needs native Chromium changes. But understanding why is half the battle.

Step 5: Inspecting Your Profile with Reference Pages

Before relying on a profile for QA or testing, look at what it reports on pages built for inspecting browsers.

CreepJS (abrahamjuliot.github.io/creepjs): Expand the WebGL section and look at the reported values. Check:

  • Whether the parameter hash is stable across two runs
  • Whether worker and main-thread values agree

BrowserLeaks (browserleaks.com/webgl): Shows raw shader precision output. Cross-reference manually against real hardware specs.

Treat these as viewers, not scorecards. A page showing your values tells you what the profile reports; it doesn't certify anything about how any other site will treat it.

If you're running ad verification workflows, consistency matters because you want profiles that render ads the way a real device in the geo you're checking would. A profile whose GPU values disagree with each other makes that comparison harder to trust.

Common Errors and How to Fix Them

Error: Fragment shader precision doesn't match claimed GPU

Cause: Your profile reports one GPU (e.g., Intel UHD 620) but returns precision values from your actual hardware.

Fix: Configuration can't fix this if the tool doesn't handle precision at the native level. Either use a browser with engine-level support, or have the profile report the GPU you actually have, which is at least consistent. (Opinion: a tool that sells identity control should say plainly which layers it covers.)

Error: WebGL2 parameters inconsistent with WebGL1

Cause: Some tools adjust WebGL1 parameters but forget WebGL2, so the two contexts describe different GPUs.

Fix: Check both contexts explicitly. Disabling WebGL2 outright is a poor workaround, because it makes the profile look unusual in its own right.

Error: Worker thread returns different precision than main thread

Cause: JavaScript-level overrides often patch only the main thread. Web Worker WebGL contexts query the real driver.

Fix: Engine-level support is required. If a reference page shows this mismatch, a script-based tool can't resolve it.

Error: Values look right but results still differ from a real device

Cause: Shader precision is one vector. Canvas hash consistency, AudioContext timing, and TLS fingerprints and JA4 all contribute. Consistent GPU values don't mean everything else lines up.

Fix: Audit the full fingerprint stack. JustAnalytics can help you see how your own site's sessions behave, and ClickzProtect covers traffic quality on your own campaigns. One consistent signal doesn't make up for several inconsistent ones.

Next Steps

Shader precision and WebGL2 parameters are the second layer of GPU fingerprinting. You've probably covered the first layer (renderer strings, basic parameters). Now you know what lies beneath.

For team setups where each profile needs its own consistent identity:

  1. Audit every profile with the diagnostic script above
  2. Compare against real hardware whenever you can get access to it
  3. Check Web Workers as well as the main thread
  4. Re-check after updates, since browsers and reference pages change

A good profile is one where every layer tells the same story: renderer string, shader precision, WebGL2 parameters, texture sizes, all consistent with a machine that could exist.

Extension-based tools can't reach the driver level. That's the real gap between them and an engine-level approach.

Frequently Asked Questions

What shader precision formats reveal about my GPU?

Shader precision formats report the actual floating-point capabilities of your GPU's vertex and fragment shaders. GPUs don't all handle precision the same way, so different hardware can report different rangeMin, rangeMax, and precision values. A site can compare these values with the renderer string, and a mismatch between the two shows up as a contradiction.

How do WebGL2 compute shaders fingerprint browsers?

WebGL2 introduced compute-adjacent features through transform feedback and uniform buffer objects. Sites can run small GPU calculations and measure the results — timing, output precision, and error handling all vary by driver. Slightly different floating-point rounding between GPU vendors can point to the true GPU even when the renderer string says something else.

Why do some multi-account browsers show mismatched shader precision values?

Some tools change the renderer string via JavaScript but leave the underlying shader precision values alone, because those come from the WebGL context at initialization. Extension-based tools can't reliably intercept getShaderPrecisionFormat calls. Engine-level changes are needed for the precision values to agree with the GPU a profile reports.

Should I worry about WebGL2 if WebGL1 looks consistent?

Yes — WebGL2 adds fingerprint surfaces that WebGL1 doesn't have. Uniform buffer object layouts, transform feedback precision, and additional parameters exist only in WebGL2 contexts. A profile that looks consistent in WebGL1 might disagree with itself in WebGL2-specific parameters. Check both contexts.


Try JustBrowser

A multi-account browser for teams, built on a custom Chromium engine with native C++ integration, not an extension. Real C++ engine patches at the canvas / WebGL / audio / font / screen layer, with 40+ identity parameters. REST API + CDP for Playwright, Puppeteer, Selenium. $9.99/month or $99.99/year. 7-day free trial, card required — cancel any time in the seven days and you are not charged. Unlimited profiles, unlimited cloud sync, unlimited team seats.

Get started → · How it differs from Multilogin / GoLogin / AdsPower

Tags
  • shader-precision
  • webgl2-fingerprinting
  • gpu-fingerprint
  • multi-account-browser
  • driver-fingerprint
  • buildinpublic
  • saasstudio
  • aiworkforce
  • buildwithclaude

Ready to manage multiple accounts?

Seven days free, then $9.99/month — one plan, everything included.

We'd like to use Google Analytics, a Google service, to understand how our website is used, and Google Ads and Microsoft Advertising to measure our ads and show them to people who have visited us. They set cookies in your browser and run only if you click Accept. You can change your choice at any time with Cookie settings. Cookie Policy

Sign-in cookies and the cookie that remembers this choice are always on; the website needs them to work.

Google Analytics, a Google service, helps us understand how our website is used, and Google Ads and Microsoft Advertising measure our ads and show them to people who have visited us. They set the cookies _ga, _ga_TVZHQ99TZW, _gcl_au, _uetsid and _uetvid, and, after a click on one of our ads, _gcl_aw or _uetmsclkid. They are now onoff in this browser. If your browser sends a Global Privacy Control or Do Not Track signal, they stay off. Cookie Policy