constants.js 612 B

123456789101112131415161718192021222324252627
  1. export const NodeShaderStage = {
  2. VERTEX: 'vertex',
  3. FRAGMENT: 'fragment'
  4. };
  5. export const NodeUpdateType = {
  6. NONE: 'none',
  7. FRAME: 'frame',
  8. RENDER: 'render',
  9. OBJECT: 'object'
  10. };
  11. export const NodeType = {
  12. BOOLEAN: 'bool',
  13. INTEGER: 'int',
  14. FLOAT: 'float',
  15. VECTOR2: 'vec2',
  16. VECTOR3: 'vec3',
  17. VECTOR4: 'vec4',
  18. MATRIX3: 'mat3',
  19. MATRIX4: 'mat4'
  20. };
  21. export const defaultShaderStages = [ 'fragment', 'vertex' ];
  22. export const defaultBuildStages = [ 'construct', 'analyze', 'generate' ];
  23. export const shaderStages = [ ...defaultShaderStages, 'compute' ];
  24. export const vectorComponents = [ 'x', 'y', 'z', 'w' ];