thebookofshaders/glossary/float/README.md

16 lines
487 B
Markdown
Raw Normal View History

2016-04-06 15:44:45 +00:00
## Float
Floating-point variable type
### Declaration
```glsl
float aFloat = 1.0;
float bFloat = float(aBool);
float cFloat = float(aInt);
```
2017-08-19 10:11:58 +00:00
### Description
2016-04-06 15:44:45 +00:00
```float``` is used for floating point values.
### See Also
2017-08-19 10:11:58 +00:00
[void](/glossary/?search=void), [bool](/glossary/?search=bool), [int](/glossary/?search=int), [float](/glossary/?search=float), [bvec2](/glossary/?search=bvec2), [bvec3](/glossary/?search=bvec3), [bvec4](/glossary/?search=bvec4), [struct](/glossary/?search=struct)