I posted an issue here on Github: NodeMaterial/TSL Color Space issues when loading custom texture data · Issue #30467 · mrdoob/three.js · GitHub and am moving the discussion here.
Description
I am working on a migration of my project from WebGLRenderer to WebGPURenderer + TSL. In my project I have a custom function that decompresses raw texture bytes to SRGB data colors using texelFetch
, then converts them to linear color space in the vertex shader. The project I work on is very sensitive to color spaces so I have spent some time to make sure my WebGLRenderer setup is correct.
I am trying to get the exact same color output from both the WebGLRenderer and the WebGPURenderer. I believe I am having an issue with color spaces and Alpha. In this JFiddle: Tsl Transparency issue - JSFiddle - Code Playground I have a node material and shader material that are attempting to be the same, but they are rendering differently.