| 1 |
{ |
| 2 |
"fileTypes": [ |
| 3 |
"vs", |
| 4 |
"fs", |
| 5 |
"gs", |
| 6 |
"vsh", |
| 7 |
"fsh", |
| 8 |
"gsh", |
| 9 |
"vshader", |
| 10 |
"fshader", |
| 11 |
"gshader", |
| 12 |
"vert", |
| 13 |
"frag", |
| 14 |
"geom", |
| 15 |
"f.glsl", |
| 16 |
"v.glsl", |
| 17 |
"g.glsl" |
| 18 |
], |
| 19 |
"foldingStartMarker": "/\\*\\*|\\{\\s*$", |
| 20 |
"foldingStopMarker": "\\*\\*/|^\\s*\\}", |
| 21 |
"keyEquivalent": "^~G", |
| 22 |
"name": "glsl", |
| 23 |
"patterns": [ |
| 24 |
{ |
| 25 |
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b", |
| 26 |
"name": "keyword.control.glsl" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"match": "\\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|ivec2|ivec3|uvec2|uvec2|uvec3|mat2|mat3|mat4|mat2x2|mat2x3|mat2x4|mat3x2|mat3x3|mat3x4|mat4x2|mat4x3|mat4x4|sampler[1|2|3]D|samplerCube|sampler2DRect|sampler[1|2]DShadow|sampler2DRectShadow|sampler[1|2]DArray|sampler[1|2]DArrayShadow|samplerBuffer|sampler2DMS|sampler2DMSArray|struct|isampler[1|2|3]D|isamplerCube|isampler2DRect|isampler[1|2]DArray|isamplerBuffer|isampler2DMS|isampler2DMSArray|usampler[1|2|3]D|usamplerCube|usampler2DRect|usampler[1|2]DArray|usamplerBuffer|usampler2DMS|usampler2DMSArray)\\b", |
| 30 |
"name": "storage.type.glsl" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"match": "\\b(attribute|centroid|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying)\\b", |
| 34 |
"name": "storage.modifier.glsl" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"match": "\\b(gl_BackColor|gl_BackLightModelProduct|gl_BackLightProduct|gl_BackMaterial|gl_BackSecondaryColor|gl_ClipDistance|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_FragDat|gl_FragDept|gl_FrontColor|gl_FrontFacing|gl_FrontLightModelProduct|gl_FrontLightProduct|gl_FrontMaterial|gl_FrontSecondaryColor|gl_InstanceID|gl_Layer|gl_LightModel|gl_LightModelParameters|gl_LightModelProducts|gl_LightProducts|gl_LightSource|gl_LightSourceParameters|gl_MaterialParameters|gl_ModelViewMatrix|gl_ModelViewMatrixInverse|gl_ModelViewMatrixInverseTranspose|gl_ModelViewMatrixTranspose|gl_ModelViewProjectionMatrix|gl_ModelViewProjectionMatrixInverse|gl_ModelViewProjectionMatrixInverseTranspose|gl_ModelViewProjectionMatrixTranspose|gl_MultiTexCoord[0-7]|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_PrimitiveIDIn|gl_ProjectionMatrix|gl_ProjectionMatrixInverse|gl_ProjectionMatrixInverseTranspose|gl_ProjectionMatrixTranspose|gl_SecondaryColor|gl_TexCoord|gl_TextureEnvColor|gl_TextureMatrix|gl_TextureMatrixInverse|gl_TextureMatrixInverseTranspose|gl_TextureMatrixTranspose|gl_Vertex|gl_VertexIDh)\\b", |
| 38 |
"name": "support.variable.glsl" |
| 39 |
}, |
| 40 |
{ |
| 41 |
"match": "\\b(gl_MaxClipPlanes|gl_MaxCombinedTextureImageUnits|gl_MaxDrawBuffers|gl_MaxFragmentUniformComponents|gl_MaxLights|gl_MaxTextureCoords|gl_MaxTextureImageUnits|gl_MaxTextureUnits|gl_MaxVaryingFloats|gl_MaxVertexAttribs|gl_MaxVertexTextureImageUnits|gl_MaxVertexUniformComponents)\\b", |
| 42 |
"name": "support.constant.glsl" |
| 43 |
}, |
| 44 |
{ |
| 45 |
"match": "\\b(abs|acos|all|any|asin|atan|ceil|clamp|cos|cross|degrees|dFdx|dFdy|distance|dot|equal|exp|exp2|faceforward|floor|fract|ftransform|fwidth|greaterThan|greaterThanEqual|inversesqrt|length|lessThan|lessThanEqual|log|log2|matrixCompMult|max|min|mix|mod|noise[1-4]|normalize|not|notEqual|outerProduct|pow|radians|reflect|refract|shadow1D|shadow1DLod|shadow1DProj|shadow1DProjLod|shadow2D|shadow2DLod|shadow2DProj|shadow2DProjLod|sign|sin|smoothstep|sqrt|step|tan|texture1D|texture1DLod|texture1DProj|texture1DProjLod|texture2D|texture2DLod|texture2DProj|texture2DProjLod|texture3D|texture3DLod|texture3DProj|texture3DProjLod|textureCube|textureCubeLod|transpose)\\b", |
| 46 |
"name": "support.function.glsl" |
| 47 |
}, |
| 48 |
{ |
| 49 |
"match": "\\b(asm|double|enum|extern|goto|inline|long|short|sizeof|static|typedef|union|unsigned|volatile)\\b", |
| 50 |
"name": "invalid.illegal.glsl" |
| 51 |
}, |
| 52 |
{ |
| 53 |
"include": "source.c" |
| 54 |
} |
| 55 |
], |
| 56 |
"scopeName": "source.glsl", |
| 57 |
"uuid": "D0FD1B52-F137-4FBA-A148-B8A893CD948C" |
| 58 |
} |
| 59 |
|