blob: 031855d343660f99329df033aea7bcca152bb232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
---input---
/* Fragment shader */
void main()
{
gl_FragColor[0] = gl_FragCoord[0] / 400.0;
gl_FragColor[1] = gl_FragCoord[1] / 400.0;
gl_FragColor[2] = 1.0;
}
---tokens---
'/* Fragment shader */' Comment.Multiline
'\n' Text
'void' Keyword.Type
' ' Text
'main' Name
'(' Punctuation
')' Punctuation
'\n' Text
'{' Punctuation
'\n ' Text
'gl_FragColor' Name.Builtin
'[' Punctuation
'0' Literal.Number.Oct
']' Punctuation
' ' Text
'=' Operator
' ' Text
'gl_FragCoord' Name.Builtin
'[' Punctuation
'0' Literal.Number.Oct
']' Punctuation
' ' Text
'/' Operator
' ' Text
'400.0' Literal.Number.Float
';' Punctuation
'\n ' Text
'gl_FragColor' Name.Builtin
'[' Punctuation
'1' Literal.Number.Integer
']' Punctuation
' ' Text
'=' Operator
' ' Text
'gl_FragCoord' Name.Builtin
'[' Punctuation
'1' Literal.Number.Integer
']' Punctuation
' ' Text
'/' Operator
' ' Text
'400.0' Literal.Number.Float
';' Punctuation
'\n ' Text
'gl_FragColor' Name.Builtin
'[' Punctuation
'2' Literal.Number.Integer
']' Punctuation
' ' Text
'=' Operator
' ' Text
'1.0' Literal.Number.Float
';' Punctuation
'\n' Text
'}' Punctuation
'\n' Text
|