Shadertoy 教学资料

TheBooksofShaders ShaderToy
OpenGL Tutorial
回复
头像
523066680
Administrator
Administrator
帖子: 573
注册时间: 2016年07月19日 12:14
联系:

Shadertoy 教学资料

帖子 523066680 »

推荐关注:https://www.shadertoy.com/user/FabriceNeyret2
作者个人主页:http://evasion.imag.fr/Membres/Fabrice.Neyret/

Shadertoy 非官方页面
https://shadertoyunofficial.wordpress.com/

shadertoy 用户指南
https://shadertoyunofficial.wordpress.c ... -features/

Shadertoy / GLSL 实用技巧
https://shadertoyunofficial.wordpress.c ... ertoyglsl/

在 Shader 中显示文本
https://www.shadertoy.com/view/MtVXRd
https://www.shadertoy.com/view/MtySzd

第一个示例代码缩减,在Channel0 中选择 视频 - font1
```c
#define res iChannelResolution[0].xy

void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
// draw font texture with it's original size
vec2 uv = fragCoord / res;
uv -= 0.5 * (iResolution.xy - res) / res; // center image

fragColor = texture(iChannel0, uv).xxxx; // aa font
}
```

A Beginner's Guide to Coding Graphics Shaders
https://gamedevelopment.tutsplus.com/tu ... -cms-23313
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客