mirror of
https://github.com/SamEyeBam/animate.git
synced 2026-03-23 06:52:05 +00:00
larry babby and threejs for glsl
This commit is contained in:
69
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/builtins-300es.js
generated
vendored
Normal file
69
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/builtins-300es.js
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
// 300es builtins/reserved words that were previously valid in v100
|
||||
var v100 = require('./builtins')
|
||||
|
||||
// The texture2D|Cube functions have been removed
|
||||
// And the gl_ features are updated
|
||||
v100 = v100.slice().filter(function (b) {
|
||||
return !/^(gl\_|texture)/.test(b)
|
||||
})
|
||||
|
||||
module.exports = v100.concat([
|
||||
// the updated gl_ constants
|
||||
'gl_VertexID'
|
||||
, 'gl_InstanceID'
|
||||
, 'gl_Position'
|
||||
, 'gl_PointSize'
|
||||
, 'gl_FragCoord'
|
||||
, 'gl_FrontFacing'
|
||||
, 'gl_FragDepth'
|
||||
, 'gl_PointCoord'
|
||||
, 'gl_MaxVertexAttribs'
|
||||
, 'gl_MaxVertexUniformVectors'
|
||||
, 'gl_MaxVertexOutputVectors'
|
||||
, 'gl_MaxFragmentInputVectors'
|
||||
, 'gl_MaxVertexTextureImageUnits'
|
||||
, 'gl_MaxCombinedTextureImageUnits'
|
||||
, 'gl_MaxTextureImageUnits'
|
||||
, 'gl_MaxFragmentUniformVectors'
|
||||
, 'gl_MaxDrawBuffers'
|
||||
, 'gl_MinProgramTexelOffset'
|
||||
, 'gl_MaxProgramTexelOffset'
|
||||
, 'gl_DepthRangeParameters'
|
||||
, 'gl_DepthRange'
|
||||
|
||||
// other builtins
|
||||
, 'trunc'
|
||||
, 'round'
|
||||
, 'roundEven'
|
||||
, 'isnan'
|
||||
, 'isinf'
|
||||
, 'floatBitsToInt'
|
||||
, 'floatBitsToUint'
|
||||
, 'intBitsToFloat'
|
||||
, 'uintBitsToFloat'
|
||||
, 'packSnorm2x16'
|
||||
, 'unpackSnorm2x16'
|
||||
, 'packUnorm2x16'
|
||||
, 'unpackUnorm2x16'
|
||||
, 'packHalf2x16'
|
||||
, 'unpackHalf2x16'
|
||||
, 'outerProduct'
|
||||
, 'transpose'
|
||||
, 'determinant'
|
||||
, 'inverse'
|
||||
, 'texture'
|
||||
, 'textureSize'
|
||||
, 'textureProj'
|
||||
, 'textureLod'
|
||||
, 'textureOffset'
|
||||
, 'texelFetch'
|
||||
, 'texelFetchOffset'
|
||||
, 'textureProjOffset'
|
||||
, 'textureLodOffset'
|
||||
, 'textureProjLod'
|
||||
, 'textureProjLodOffset'
|
||||
, 'textureGrad'
|
||||
, 'textureGradOffset'
|
||||
, 'textureProjGrad'
|
||||
, 'textureProjGradOffset'
|
||||
])
|
||||
150
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/builtins.js
generated
vendored
Normal file
150
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/builtins.js
generated
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
module.exports = [
|
||||
// Keep this list sorted
|
||||
'abs'
|
||||
, 'acos'
|
||||
, 'all'
|
||||
, 'any'
|
||||
, 'asin'
|
||||
, 'atan'
|
||||
, 'ceil'
|
||||
, 'clamp'
|
||||
, 'cos'
|
||||
, 'cross'
|
||||
, 'dFdx'
|
||||
, 'dFdy'
|
||||
, 'degrees'
|
||||
, 'distance'
|
||||
, 'dot'
|
||||
, 'equal'
|
||||
, 'exp'
|
||||
, 'exp2'
|
||||
, 'faceforward'
|
||||
, 'floor'
|
||||
, 'fract'
|
||||
, 'gl_BackColor'
|
||||
, 'gl_BackLightModelProduct'
|
||||
, 'gl_BackLightProduct'
|
||||
, 'gl_BackMaterial'
|
||||
, 'gl_BackSecondaryColor'
|
||||
, 'gl_ClipPlane'
|
||||
, 'gl_ClipVertex'
|
||||
, 'gl_Color'
|
||||
, 'gl_DepthRange'
|
||||
, 'gl_DepthRangeParameters'
|
||||
, 'gl_EyePlaneQ'
|
||||
, 'gl_EyePlaneR'
|
||||
, 'gl_EyePlaneS'
|
||||
, 'gl_EyePlaneT'
|
||||
, 'gl_Fog'
|
||||
, 'gl_FogCoord'
|
||||
, 'gl_FogFragCoord'
|
||||
, 'gl_FogParameters'
|
||||
, 'gl_FragColor'
|
||||
, 'gl_FragCoord'
|
||||
, 'gl_FragData'
|
||||
, 'gl_FragDepth'
|
||||
, 'gl_FragDepthEXT'
|
||||
, 'gl_FrontColor'
|
||||
, 'gl_FrontFacing'
|
||||
, 'gl_FrontLightModelProduct'
|
||||
, 'gl_FrontLightProduct'
|
||||
, 'gl_FrontMaterial'
|
||||
, 'gl_FrontSecondaryColor'
|
||||
, 'gl_LightModel'
|
||||
, 'gl_LightModelParameters'
|
||||
, 'gl_LightModelProducts'
|
||||
, 'gl_LightProducts'
|
||||
, 'gl_LightSource'
|
||||
, 'gl_LightSourceParameters'
|
||||
, 'gl_MaterialParameters'
|
||||
, 'gl_MaxClipPlanes'
|
||||
, 'gl_MaxCombinedTextureImageUnits'
|
||||
, 'gl_MaxDrawBuffers'
|
||||
, 'gl_MaxFragmentUniformComponents'
|
||||
, 'gl_MaxLights'
|
||||
, 'gl_MaxTextureCoords'
|
||||
, 'gl_MaxTextureImageUnits'
|
||||
, 'gl_MaxTextureUnits'
|
||||
, 'gl_MaxVaryingFloats'
|
||||
, 'gl_MaxVertexAttribs'
|
||||
, 'gl_MaxVertexTextureImageUnits'
|
||||
, 'gl_MaxVertexUniformComponents'
|
||||
, 'gl_ModelViewMatrix'
|
||||
, 'gl_ModelViewMatrixInverse'
|
||||
, 'gl_ModelViewMatrixInverseTranspose'
|
||||
, 'gl_ModelViewMatrixTranspose'
|
||||
, 'gl_ModelViewProjectionMatrix'
|
||||
, 'gl_ModelViewProjectionMatrixInverse'
|
||||
, 'gl_ModelViewProjectionMatrixInverseTranspose'
|
||||
, 'gl_ModelViewProjectionMatrixTranspose'
|
||||
, 'gl_MultiTexCoord0'
|
||||
, 'gl_MultiTexCoord1'
|
||||
, 'gl_MultiTexCoord2'
|
||||
, 'gl_MultiTexCoord3'
|
||||
, 'gl_MultiTexCoord4'
|
||||
, 'gl_MultiTexCoord5'
|
||||
, 'gl_MultiTexCoord6'
|
||||
, 'gl_MultiTexCoord7'
|
||||
, 'gl_Normal'
|
||||
, 'gl_NormalMatrix'
|
||||
, 'gl_NormalScale'
|
||||
, 'gl_ObjectPlaneQ'
|
||||
, 'gl_ObjectPlaneR'
|
||||
, 'gl_ObjectPlaneS'
|
||||
, 'gl_ObjectPlaneT'
|
||||
, 'gl_Point'
|
||||
, 'gl_PointCoord'
|
||||
, 'gl_PointParameters'
|
||||
, 'gl_PointSize'
|
||||
, 'gl_Position'
|
||||
, 'gl_ProjectionMatrix'
|
||||
, 'gl_ProjectionMatrixInverse'
|
||||
, 'gl_ProjectionMatrixInverseTranspose'
|
||||
, 'gl_ProjectionMatrixTranspose'
|
||||
, 'gl_SecondaryColor'
|
||||
, 'gl_TexCoord'
|
||||
, 'gl_TextureEnvColor'
|
||||
, 'gl_TextureMatrix'
|
||||
, 'gl_TextureMatrixInverse'
|
||||
, 'gl_TextureMatrixInverseTranspose'
|
||||
, 'gl_TextureMatrixTranspose'
|
||||
, 'gl_Vertex'
|
||||
, 'greaterThan'
|
||||
, 'greaterThanEqual'
|
||||
, 'inversesqrt'
|
||||
, 'length'
|
||||
, 'lessThan'
|
||||
, 'lessThanEqual'
|
||||
, 'log'
|
||||
, 'log2'
|
||||
, 'matrixCompMult'
|
||||
, 'max'
|
||||
, 'min'
|
||||
, 'mix'
|
||||
, 'mod'
|
||||
, 'normalize'
|
||||
, 'not'
|
||||
, 'notEqual'
|
||||
, 'pow'
|
||||
, 'radians'
|
||||
, 'reflect'
|
||||
, 'refract'
|
||||
, 'sign'
|
||||
, 'sin'
|
||||
, 'smoothstep'
|
||||
, 'sqrt'
|
||||
, 'step'
|
||||
, 'tan'
|
||||
, 'texture2D'
|
||||
, 'texture2DLod'
|
||||
, 'texture2DProj'
|
||||
, 'texture2DProjLod'
|
||||
, 'textureCube'
|
||||
, 'textureCubeLod'
|
||||
, 'texture2DLodEXT'
|
||||
, 'texture2DProjLodEXT'
|
||||
, 'textureCubeLodEXT'
|
||||
, 'texture2DGradEXT'
|
||||
, 'texture2DProjGradEXT'
|
||||
, 'textureCubeGradEXT'
|
||||
]
|
||||
87
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/literals-300es.js
generated
vendored
Normal file
87
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/literals-300es.js
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
var v100 = require('./literals')
|
||||
|
||||
module.exports = v100.slice().concat([
|
||||
'layout'
|
||||
, 'centroid'
|
||||
, 'smooth'
|
||||
, 'case'
|
||||
, 'mat2x2'
|
||||
, 'mat2x3'
|
||||
, 'mat2x4'
|
||||
, 'mat3x2'
|
||||
, 'mat3x3'
|
||||
, 'mat3x4'
|
||||
, 'mat4x2'
|
||||
, 'mat4x3'
|
||||
, 'mat4x4'
|
||||
, 'uvec2'
|
||||
, 'uvec3'
|
||||
, 'uvec4'
|
||||
, 'samplerCubeShadow'
|
||||
, 'sampler2DArray'
|
||||
, 'sampler2DArrayShadow'
|
||||
, 'isampler2D'
|
||||
, 'isampler3D'
|
||||
, 'isamplerCube'
|
||||
, 'isampler2DArray'
|
||||
, 'usampler2D'
|
||||
, 'usampler3D'
|
||||
, 'usamplerCube'
|
||||
, 'usampler2DArray'
|
||||
, 'coherent'
|
||||
, 'restrict'
|
||||
, 'readonly'
|
||||
, 'writeonly'
|
||||
, 'resource'
|
||||
, 'atomic_uint'
|
||||
, 'noperspective'
|
||||
, 'patch'
|
||||
, 'sample'
|
||||
, 'subroutine'
|
||||
, 'common'
|
||||
, 'partition'
|
||||
, 'active'
|
||||
, 'filter'
|
||||
, 'image1D'
|
||||
, 'image2D'
|
||||
, 'image3D'
|
||||
, 'imageCube'
|
||||
, 'iimage1D'
|
||||
, 'iimage2D'
|
||||
, 'iimage3D'
|
||||
, 'iimageCube'
|
||||
, 'uimage1D'
|
||||
, 'uimage2D'
|
||||
, 'uimage3D'
|
||||
, 'uimageCube'
|
||||
, 'image1DArray'
|
||||
, 'image2DArray'
|
||||
, 'iimage1DArray'
|
||||
, 'iimage2DArray'
|
||||
, 'uimage1DArray'
|
||||
, 'uimage2DArray'
|
||||
, 'image1DShadow'
|
||||
, 'image2DShadow'
|
||||
, 'image1DArrayShadow'
|
||||
, 'image2DArrayShadow'
|
||||
, 'imageBuffer'
|
||||
, 'iimageBuffer'
|
||||
, 'uimageBuffer'
|
||||
, 'sampler1DArray'
|
||||
, 'sampler1DArrayShadow'
|
||||
, 'isampler1D'
|
||||
, 'isampler1DArray'
|
||||
, 'usampler1D'
|
||||
, 'usampler1DArray'
|
||||
, 'isampler2DRect'
|
||||
, 'usampler2DRect'
|
||||
, 'samplerBuffer'
|
||||
, 'isamplerBuffer'
|
||||
, 'usamplerBuffer'
|
||||
, 'sampler2DMS'
|
||||
, 'isampler2DMS'
|
||||
, 'usampler2DMS'
|
||||
, 'sampler2DMSArray'
|
||||
, 'isampler2DMSArray'
|
||||
, 'usampler2DMSArray'
|
||||
])
|
||||
94
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/literals.js
generated
vendored
Normal file
94
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/literals.js
generated
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
module.exports = [
|
||||
// current
|
||||
'precision'
|
||||
, 'highp'
|
||||
, 'mediump'
|
||||
, 'lowp'
|
||||
, 'attribute'
|
||||
, 'const'
|
||||
, 'uniform'
|
||||
, 'varying'
|
||||
, 'break'
|
||||
, 'continue'
|
||||
, 'do'
|
||||
, 'for'
|
||||
, 'while'
|
||||
, 'if'
|
||||
, 'else'
|
||||
, 'in'
|
||||
, 'out'
|
||||
, 'inout'
|
||||
, 'float'
|
||||
, 'int'
|
||||
, 'uint'
|
||||
, 'void'
|
||||
, 'bool'
|
||||
, 'true'
|
||||
, 'false'
|
||||
, 'discard'
|
||||
, 'return'
|
||||
, 'mat2'
|
||||
, 'mat3'
|
||||
, 'mat4'
|
||||
, 'vec2'
|
||||
, 'vec3'
|
||||
, 'vec4'
|
||||
, 'ivec2'
|
||||
, 'ivec3'
|
||||
, 'ivec4'
|
||||
, 'bvec2'
|
||||
, 'bvec3'
|
||||
, 'bvec4'
|
||||
, 'sampler1D'
|
||||
, 'sampler2D'
|
||||
, 'sampler3D'
|
||||
, 'samplerCube'
|
||||
, 'sampler1DShadow'
|
||||
, 'sampler2DShadow'
|
||||
, 'struct'
|
||||
|
||||
// future
|
||||
, 'asm'
|
||||
, 'class'
|
||||
, 'union'
|
||||
, 'enum'
|
||||
, 'typedef'
|
||||
, 'template'
|
||||
, 'this'
|
||||
, 'packed'
|
||||
, 'goto'
|
||||
, 'switch'
|
||||
, 'default'
|
||||
, 'inline'
|
||||
, 'noinline'
|
||||
, 'volatile'
|
||||
, 'public'
|
||||
, 'static'
|
||||
, 'extern'
|
||||
, 'external'
|
||||
, 'interface'
|
||||
, 'long'
|
||||
, 'short'
|
||||
, 'double'
|
||||
, 'half'
|
||||
, 'fixed'
|
||||
, 'unsigned'
|
||||
, 'input'
|
||||
, 'output'
|
||||
, 'hvec2'
|
||||
, 'hvec3'
|
||||
, 'hvec4'
|
||||
, 'dvec2'
|
||||
, 'dvec3'
|
||||
, 'dvec4'
|
||||
, 'fvec2'
|
||||
, 'fvec3'
|
||||
, 'fvec4'
|
||||
, 'sampler2DRect'
|
||||
, 'sampler3DRect'
|
||||
, 'sampler2DRectShadow'
|
||||
, 'sizeof'
|
||||
, 'cast'
|
||||
, 'namespace'
|
||||
, 'using'
|
||||
]
|
||||
47
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/operators.js
generated
vendored
Normal file
47
webGl/my-threejs-test/node_modules/glsl-tokenizer/lib/operators.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
module.exports = [
|
||||
'<<='
|
||||
, '>>='
|
||||
, '++'
|
||||
, '--'
|
||||
, '<<'
|
||||
, '>>'
|
||||
, '<='
|
||||
, '>='
|
||||
, '=='
|
||||
, '!='
|
||||
, '&&'
|
||||
, '||'
|
||||
, '+='
|
||||
, '-='
|
||||
, '*='
|
||||
, '/='
|
||||
, '%='
|
||||
, '&='
|
||||
, '^^'
|
||||
, '^='
|
||||
, '|='
|
||||
, '('
|
||||
, ')'
|
||||
, '['
|
||||
, ']'
|
||||
, '.'
|
||||
, '!'
|
||||
, '~'
|
||||
, '*'
|
||||
, '/'
|
||||
, '%'
|
||||
, '+'
|
||||
, '-'
|
||||
, '<'
|
||||
, '>'
|
||||
, '&'
|
||||
, '^'
|
||||
, '|'
|
||||
, '?'
|
||||
, ':'
|
||||
, '='
|
||||
, ','
|
||||
, ';'
|
||||
, '{'
|
||||
, '}'
|
||||
]
|
||||
Reference in New Issue
Block a user