![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Shader
文章平均质量分 91
我的名字叫就叫D
这个作者很懒,什么都没留下…
展开
-
The Book of Shader - 造型函数 - 颜色
造型函数这章比较简单,主要是使用Step和SmoothStep,绘制各种函数图形,画布首先了解画布的坐标,即st.xy, 是从左下到右上的绘制y=xfloat plot(vec2 st) { return smoothstep(0.02, 0.0, abs(st.y - st.x));}void main(){ ...... float pct = plot(st); color = (1.0-pct)*color+pct*ve...原创 2021-09-03 09:23:57 · 455 阅读 · 1 评论 -
The Book of Shader-01-开始-环境搭建
主要实现The Book of Shader 中提到的环境搭建原创 2021-08-30 15:23:30 · 353 阅读 · 0 评论