Skip to content

KBE3D / KBCore / Cesium / getSourceValueStringComponent

函数: getSourceValueStringComponent()

getSourceValueStringComponent(classProperty: MetadataClassProperty, metadataProperty: any, componentName: string): string

Creates a shader statement that returns the value of the specified component of the given property, normalized to the range [0, 1].

参数

classProperty

MetadataClassProperty

The class property

metadataProperty

any

The metadata property, either a PropertyTextureProperty or a PropertyAttributeProperty

componentName

string

The name, in ["x", "y", "z", "w"]

返回

string

The string

KBE3D @3.0.0 Copyright © 2024-present KBE3D