Added sRGB->linear vertex color conversion in the geometry converter. Not all connectors may send their vertex colors in sRGB but this is what we agreed we're going to treat vertex color space for now
This commit is contained in:
@@ -105,7 +105,7 @@ const getStream = () => {
|
||||
// prettier-ignore
|
||||
// 'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8?c=%5B-7.66134,10.82932,6.41935,-0.07739,-13.88552,1.8697,0,1%5D'
|
||||
// Revit sample house (good for bim-like stuff with many display meshes)
|
||||
'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8'
|
||||
// 'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8'
|
||||
// 'https://latest.speckle.dev/streams/c1faab5c62/commits/ab1a1ab2b6'
|
||||
// 'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8'
|
||||
// 'https://latest.speckle.dev/streams/58b5648c4d/commits/60371ecb2d'
|
||||
@@ -388,6 +388,8 @@ const getStream = () => {
|
||||
// 'https://app.speckle.systems/projects/122448a81e/models/f21aff1f4a'
|
||||
// Thin plane
|
||||
// 'https://app.speckle.systems/projects/20f72acc58/models/2cf8a736f8'
|
||||
// Rhino sRGB vertex colors
|
||||
'https://app.speckle.systems/projects/47bbaf594f/models/ef78e94f72'
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ export class SpeckleGeometryConverter extends GeometryConverter {
|
||||
`Mesh (id ${node.raw.id}) colours are mismatched with vertice counts. The number of colours must equal the number of vertices.`
|
||||
)
|
||||
}
|
||||
colors = this.unpackColors(colorsRaw)
|
||||
colors = this.unpackColors(colorsRaw, true)
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user