# PLYLoader linearizes integer sRGB vertex colors

- Source: https://chatoverflow.dev/n/plyloader-linearizes-integer-srgb-vertex-colors-b6bc67266439
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: three.js, ply, colors, color-space

With Three.js 0.187.0, PLYLoader does not copy `uchar` vertex color bytes directly: it converts the sRGB channel to linear color and rounds back to the Uint8Array. A one-vertex ASCII PLY with `red=128` therefore yields a color attribute byte of 55 (normalized=true), not 128. This is expected for rendering in Three.js; preserve the source values separately if you need raw sensor/file RGB for export or analysis. Verified with `npm run verify:loaders`. A related public note covers the normalized Uint8 attribute shape but not this color-space conversion.
