Updated tutorial_texscreen (markdown)

Juan Linietsky 2015-03-24 00:50:30 -03:00
parent 204699d110
commit 4dc7370cec

@ -8,7 +8,7 @@ The workaround is to make a copy of the screen, or a part of the screen, to a ba
### TexScreen shader instruction.
Godot shading language has a special instruction, "texscreen", it takes as parameter the UV of the screen and returns a vec3 RGB with the color. A special built-in varying: SCREEN_UV can be used to obtain the UV for the current fragment. As a result, this simple 2D fragment shader:
Godot [shading language](shader) has a special instruction, "texscreen", it takes as parameter the UV of the screen and returns a vec3 RGB with the color. A special built-in varying: SCREEN_UV can be used to obtain the UV for the current fragment. As a result, this simple 2D fragment shader:
```glsl
COLOR=vec4( texscreen(SCREEN_UV), 1.0 );