mirror of
https://github.com/godotengine/godot
synced 2024-07-05 15:43:36 +00:00
Updated shader (markdown)
parent
8e5efb6538
commit
2c19607336
|
@ -26,6 +26,7 @@ The language is statically type and only supports a few operations. Arrays, clas
|
|||
| vec2 | 2-component vector, float subindices (x,y or r,g ) |
|
||||
| vec3 | 3-component vector, float subindices (x,y,z or r,g,b ) |
|
||||
| vec4,color | 4-component vector, float subindices (x,y,z,w or r,g,b,a ) |
|
||||
| mat2 | 2x2 matrix, vec3 subindices (x,y) |
|
||||
| mat3 | 3x3 matrix, vec3 subindices (x,y,z) |
|
||||
| mat4 | 4x4 matrix, vec4 subindices (x,y,z,w) |
|
||||
| texture | texture sampler, can only be used as uniform |
|
||||
|
@ -328,6 +329,6 @@ vec3 world_pos = (VERTEX-INV_CAMERA_MATRIX.w.xyz) * mat3(INV_CAMERA_MATRIX);
|
|||
|
||||
--- //[[reduzio@gmail.com|Juan Linietsky]] 2013/11/10 18:10//
|
||||
|
||||
|
||||
|
||||
(c) Juan Linietsky, Ariel Manzur, Distributed under the terms of the [CC By](https://creativecommons.org/licenses/by/3.0/legalcode) license.
|
||||
|
||||
|
||||
(c) Juan Linietsky, Ariel Manzur, Distributed under the terms of the [CC By](https://creativecommons.org/licenses/by/3.0/legalcode) license.
|
Loading…
Reference in New Issue
Block a user