Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@
<div id="console"></div>
<script id="vertexShader" type="text/something-not-javascript">
// vertex shader that uses double-underscore in identifier should succeed
attribute vec4 foo__bar;
attribute vec4 position;
varying vec4 foo__bar;
void main()
{
gl_Position = foo__bar;
foo__bar = position;
gl_Position = position;
}
</script>
<script id="fragmentShader" type="text/something-not-javascript">
// fragment shader that uses double-underscore in identifier should succeed
attribute vec4 foo__bar;
precision mediump float;
varying vec4 foo__bar;
void main()
{
gl_FragColor = foo__bar;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@
"cast",
"namespace",
"using",
"__foo", // something that has 2 underscores
"foo__bar", // something that has 2 underscores
"gl_foo", // something that starts with gl_
"webgl_foo" // something that starts with webgl_
];
Expand Down