Difference between revisions of "vec2"
(Created page with "A vector with 2 floating-point number components. These can be accessed with <code>.r/g</code>, <code>.x/y</code>, or <code>[0/1]</code>. <source lang="glsl"> vec2 example = v...") |
(Added a description and a link to Shader) |
||
Line 13: | Line 13: | ||
== See Also == | == See Also == | ||
* [[vec4]] | * [[vec4]] | ||
+ | * [[Shader]] | ||
[[Category:GLSL]] | [[Category:GLSL]] | ||
+ | {{#set:Description=Vector made of 2 floats.}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|vec4}} | {{i18n|vec4}} |
Revision as of 03:51, 29 June 2022
A vector with 2 floating-point number components. These can be accessed with .r/g
, .x/y
, or [0/1]
.
vec2 example = vec2(0.5, 1.0);
float x = example.x;
float y = example.y;
Read more:
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info