mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-09 19:10:24 +00:00
15 lines
413 B
Markdown
15 lines
413 B
Markdown
|
## Int
|
||
|
Integer data type
|
||
|
|
||
|
### Declaration
|
||
|
```glsl
|
||
|
int aInt = 42;
|
||
|
int bInt = int(aBool);
|
||
|
int cInt = int(aFloat);
|
||
|
```
|
||
|
|
||
|
### Description
|
||
|
```int``` is used for integer values.
|
||
|
|
||
|
### See Also
|
||
|
[void](/glossary/?search=void), [bool](/glossary/?search=bool), [int](/glossary/?search=int), [float](/glossary/?search=float), [ivec2](/glossary/?search=ivec2), [ivec3](/glossary/?search=ivec3), [ivec4](/glossary/?search=ivec4)
|