Search notes:

Graphic Library Shader Language

Built in types

For example:

Built in functions

For example

Variable types

Four types of variables:

Vectors

Referring to the elements of a vec4 VEC:
First element: VEC.x VEC.s VEC.r VEC[0]
Second element: VEC.y VEC.t VEC.g VEC[1]
Third element: VEC.z VEC.p VEC.b VEC[2]
Fourth element: VEC.w VEC.q VEC.a VEC[3]
The components can be concatenated to create a new vector. The following creates a four element vector whose first three elements are equal:
new_vec = VEC.rrra;

See also

WebGL
Accessing the source code from javascript
The three.js Uniform class

Links

shadertoy

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758206519, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/web/WebGL/GLSL/index(88): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78