소스 검색

convert sRGB to linear when exporting GLB

Sukolsak Sakshuwong 3 년 전
부모
커밋
aab95d27e0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/extensions/geo-export/glb-exporter.ts

+ 1 - 0
src/extensions/geo-export/glb-exporter.ts

@@ -160,6 +160,7 @@ export class GlbExporter extends MeshExporter<GlbData> {
                     alpha *= 1 - transparency;
                 }
 
+                color = Color.sRGBToLinear(color);
                 Color.toArrayNormalized(color, colorArray, i * 4);
                 colorArray[i * 4 + 3] = alpha;
             }