Skip to content

Commit

Permalink
Merge kusma's updates to builtins list.
Browse files Browse the repository at this point in the history
  • Loading branch information
emackey committed Dec 15, 2011
2 parents a5d0e0e + ae6dd05 commit 9ed8983
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions static/js/glsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,18 @@ CodeMirror.defineMode("glsl", function(config, parserConfig) {
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
var glslKeywords = "if break int case continue return default do " +
"else struct switch float for unsigned goto while void const signed " +
"vec2 vec3 vec4 mat2 mat3 mat4 precision lowp mediump highp uniform " +
"attribute varying gl_Vertex gl_FragCoord gl_FragColor sampler2D " +
"samplerCube";
var glslBuiltins = "radians degrees sin cos tan asin acos atan " +
"pow exp log exp2 log2 sqrt inversesqrt abs sign foor trunc " +
"round ceil fract mod min max clamp mix step smoothstep length " +
"distance dot cross normalize reflect refract transpose lessThan " +
"greaterThan equal notEqual any all not dFdx dFdy fwidth texture2D " +
"textureCube";
var glslKeywords = "attribute const uniform varying break continue " +
"do for while if else in out inout float int void bool true false " +
"lowp mediump highp precision invariant discard return mat2 mat3 " +
"mat4 vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 sampler2D " +
"samplerCube struct";
var glslBuiltins = "radians degrees sin cos tan asin acos atan pow " +
"exp log exp2 log2 sqrt inversesqrt abs sign floor ceil fract mod " +
"min max clamp mix step smoothstep length distance dot cross " +
"normalize faceforward reflect refract matrixCompMult lessThan " +
"lessThanEqual greaterThan greaterThanEqual equal notEqual any all " +
"not dFdx dFdy fwidth texture2D texture2DProj texture2DLod
"texture2DProjLod textureCube textureCubeLod";

function cppHook(stream, state) {
if (!state.startOfLine) return false;
Expand Down

0 comments on commit 9ed8983

Please sign in to comment.