mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-07 16:57:30 +00:00
28 lines
612 B
JavaScript
28 lines
612 B
JavaScript
export const NodeShaderStage = {
|
|
VERTEX: 'vertex',
|
|
FRAGMENT: 'fragment'
|
|
};
|
|
|
|
export const NodeUpdateType = {
|
|
NONE: 'none',
|
|
FRAME: 'frame',
|
|
RENDER: 'render',
|
|
OBJECT: 'object'
|
|
};
|
|
|
|
export const NodeType = {
|
|
BOOLEAN: 'bool',
|
|
INTEGER: 'int',
|
|
FLOAT: 'float',
|
|
VECTOR2: 'vec2',
|
|
VECTOR3: 'vec3',
|
|
VECTOR4: 'vec4',
|
|
MATRIX3: 'mat3',
|
|
MATRIX4: 'mat4'
|
|
};
|
|
|
|
export const defaultShaderStages = [ 'fragment', 'vertex' ];
|
|
export const defaultBuildStages = [ 'construct', 'analyze', 'generate' ];
|
|
export const shaderStages = [ ...defaultShaderStages, 'compute' ];
|
|
export const vectorComponents = [ 'x', 'y', 'z', 'w' ];
|