具有模糊和斜角的GLPaint画笔效果 [英] GLPaint Brush Effect with blur and bevel

查看:91
本文介绍了具有模糊和斜角的GLPaint画笔效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发基于GLPaint代码的绘图应用程序。有人知道如何获得这样的效果吗?我已尝试使用不同的宽度值和画笔的高度值,但它仍然保持不变。

I am working on a drawing application based on GLPaint code. Do somebody know how to get an effect like this ? I have tried with different values for the width and the Height for the brush, but still it remains same .

我需要考虑glBlendFunc()吗?或者是否可以通过改变刷子的宽度和高度来实现。

Do i need to consider glBlendFunc() ? or Is it achievable thorough changing the width and the heigh of the brush.

提前致谢。

推荐答案

实现这种效果的最简单方法是将alpha从1.0降低到0.7。

The easiest way to achieve that type of effect is to reducing the alpha from 1.0 to 0.7.

这篇关于具有模糊和斜角的GLPaint画笔效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆