constants.js 626 B

12345678910111213141516171819202122232425262728
  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. MATRIX2: 'mat2',
  19. MATRIX3: 'mat3',
  20. MATRIX4: 'mat4'
  21. };
  22. export const defaultShaderStages = [ 'fragment', 'vertex' ];
  23. export const defaultBuildStages = [ 'setup', 'analyze', 'generate' ];
  24. export const shaderStages = [ ...defaultShaderStages, 'compute' ];
  25. export const vectorComponents = [ 'x', 'y', 'z', 'w' ];