|
@@ -200,8 +200,25 @@ export const SizeSchema = {
|
|
export type SizeSchema = typeof SizeSchema
|
|
export type SizeSchema = typeof SizeSchema
|
|
export type SizeValues = Values<SizeSchema>
|
|
export type SizeValues = Values<SizeSchema>
|
|
|
|
|
|
|
|
+export const MarkerSchema = {
|
|
|
|
+ uMarkerTexDim: UniformSpec('v2'),
|
|
|
|
+ tMarker: TextureSpec('image-uint8', 'alpha', 'ubyte', 'nearest'),
|
|
|
|
+}
|
|
|
|
+export type MarkerSchema = typeof MarkerSchema
|
|
|
|
+export type MarkerValues = Values<MarkerSchema>
|
|
|
|
+
|
|
|
|
+export const OverpaintSchema = {
|
|
|
|
+ uOverpaintTexDim: UniformSpec('v2'),
|
|
|
|
+ tOverpaint: TextureSpec('image-uint8', 'rgba', 'ubyte', 'nearest'),
|
|
|
|
+ dOverpaint: DefineSpec('boolean'),
|
|
|
|
+}
|
|
|
|
+export type OverpaintSchema = typeof OverpaintSchema
|
|
|
|
+export type OverpaintValues = Values<OverpaintSchema>
|
|
|
|
+
|
|
export const BaseSchema = {
|
|
export const BaseSchema = {
|
|
...ColorSchema,
|
|
...ColorSchema,
|
|
|
|
+ ...MarkerSchema,
|
|
|
|
+ ...OverpaintSchema,
|
|
|
|
|
|
aInstance: AttributeSpec('float32', 1, 1),
|
|
aInstance: AttributeSpec('float32', 1, 1),
|
|
aGroup: AttributeSpec('float32', 1, 0),
|
|
aGroup: AttributeSpec('float32', 1, 0),
|
|
@@ -214,12 +231,10 @@ export const BaseSchema = {
|
|
uAlpha: UniformSpec('f'),
|
|
uAlpha: UniformSpec('f'),
|
|
uInstanceCount: UniformSpec('i'),
|
|
uInstanceCount: UniformSpec('i'),
|
|
uGroupCount: UniformSpec('i'),
|
|
uGroupCount: UniformSpec('i'),
|
|
- uMarkerTexDim: UniformSpec('v2'),
|
|
|
|
|
|
+
|
|
uHighlightColor: UniformSpec('v3'),
|
|
uHighlightColor: UniformSpec('v3'),
|
|
uSelectColor: UniformSpec('v3'),
|
|
uSelectColor: UniformSpec('v3'),
|
|
|
|
|
|
- tMarker: TextureSpec('image-uint8', 'alpha', 'ubyte', 'nearest'),
|
|
|
|
-
|
|
|
|
drawCount: ValueSpec('number'),
|
|
drawCount: ValueSpec('number'),
|
|
instanceCount: ValueSpec('number'),
|
|
instanceCount: ValueSpec('number'),
|
|
|
|
|