mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-09 19:10:24 +00:00
16 lines
487 B
Markdown
16 lines
487 B
Markdown
## Float
|
|
Floating-point variable type
|
|
|
|
### Declaration
|
|
```glsl
|
|
float aFloat = 1.0;
|
|
float bFloat = float(aBool);
|
|
float cFloat = float(aInt);
|
|
```
|
|
|
|
### Description
|
|
```float``` is used for floating point values.
|
|
|
|
### See Also
|
|
[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)
|