具有模糊和斜角的 GLPaint 画笔效果 [英] GLPaint Brush Effect with blur and bevel
本文介绍了具有模糊和斜角的 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屋!
查看全文