小编bra*_*don的帖子

WebGL:循环索引无法与非常量表达式进行比较

我有一个webgl模糊着色器:

precision mediump float;
precision mediump int;

uniform sampler2D u_image;
uniform float blur;       
uniform int u_horizontalpass; // 0 or 1 to indicate vertical or horizontal pass
uniform float sigma;        // The sigma value for the gaussian function: higher value means more blur
                            // A good value for 9x9 is around 3 to 5
                            // A good value for 7x7 is around 2.5 to 4
                            // A good value for 5x5 is around 2 to 3.5
                            // ... play around with …
Run Code Online (Sandbox Code Playgroud)

glsl webgl

6
推荐指数
3
解决办法
4638
查看次数

标签 统计

glsl ×1

webgl ×1