【文件属性】:
文件名称:glsl-halftone:GLSL 中的半色调效果
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-14 08:44:16
GLSL
glsl-半色调
GLSL 中的半色调着色器,改编自 Stefan Gustavson 的工作。 双线性纹理采样和缩小由用户来实现(参见 Gustavson 教程中的步骤 5 和 9)。
对于抗锯齿,在需要此模块之前,您应该在着色器的顶部启用标准导数。
precision highp float ;
#ifdef GL_OES_standard_derivatives
#extension GL_OES_standard_derivatives : enable
#endif
varying vec2 uv;
uniform vec2 iResolution;
uniform sampler2D u_sampler;
#pragma glslify : halftone = require('glsl - halftone')
void main() {
// sample f
【文件预览】:
glsl-halftone-master
----.gitignore(56B)
----README.md(2KB)
----package.json(745B)
----LICENSE.md(1KB)
----.npmignore(96B)
----index.glsl(1KB)