Improve color handling approach
This commit is contained in:
parent
e53ca905af
commit
f29293c475
22 changed files with 259 additions and 181 deletions
|
|
@ -38,18 +38,13 @@ export interface RuntimeSettings {
|
|||
*/
|
||||
lightCutoffDistance: number;
|
||||
|
||||
/**
|
||||
* The default background color of the scene, can have transparency.
|
||||
*/
|
||||
backgroundColor: vec3 | vec4;
|
||||
|
||||
/**
|
||||
* Its length should be less than the one specified in [[StartupSettings]].paletteSize.
|
||||
*
|
||||
* The possible colors for the objects. Each color is referenced by its index in the
|
||||
* palette.
|
||||
*
|
||||
* Can have transparency.
|
||||
* Can have transparency, but only if WebGL2 support is enabled.
|
||||
*/
|
||||
colorPalette: Array<vec3 | vec4>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue