目錄
創(chuàng)新互聯(lián)主營麗水網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,app軟件開發(fā),麗水h5成都微信小程序搭建,麗水網(wǎng)站營銷推廣歡迎麗水等地區(qū)企業(yè)咨詢
零基礎(chǔ) OpenGL (ES) 學(xué)習(xí)路線推薦 :OpenGL (ES) 學(xué)習(xí)目錄 >>OpenGL ES 基礎(chǔ)
零基礎(chǔ) OpenGL (ES) 學(xué)習(xí)路線推薦 :OpenGL (ES) 學(xué)習(xí)目錄>>OpenGL ES 轉(zhuǎn)場
零基礎(chǔ) OpenGL (ES) 學(xué)習(xí)路線推薦 :OpenGL (ES) 學(xué)習(xí)目錄>>OpenGL ES 特效
零基礎(chǔ) OpenGL (ES) 學(xué)習(xí)路線推薦 :OpenGL (ES) 學(xué)習(xí)目錄>>OpenGL ES 函數(shù)
零基礎(chǔ) OpenGL (ES) 學(xué)習(xí)路線推薦 :OpenGL (ES) 學(xué)習(xí)目錄>>OpenGL ES GPUImage 使用
零基礎(chǔ) OpenGL (ES) 學(xué)習(xí)路線推薦 :OpenGL (ES) 學(xué)習(xí)目錄>>OpenGL ES GLSL 編程
GPUImage 共 125 個(gè)濾鏡, 分為四類
1、Color adjustments : 31 filters , 顏色處理相關(guān)
2、Image processing : 40 filters , 圖像處理相關(guān).
3、Blending modes : 29 filters , 混合模式相關(guān).
4、Visual effects : 25 filters , 視覺效果相關(guān).
GPUImageSolidColorGenerator 屬于 GPUImage 顏色處理相關(guān),用來處理圖片純色;
/******************************************************************************************/
//@Author:猿說編程
//@Blog(個(gè)人博客地址): www.codersrc.com
//@File:GPUImage – 純色 GPUImageSolidColorGenerator
//@Time:2022/03/28 07:30
//@Motto:不積跬步無以至千里,不積小流無以成江海,程序人生的精彩需要堅(jiān)持不懈地積累!
/******************************************************************************************/
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUSolidColorFragmentShaderString = SHADER_STRING
(
precision lowp float;
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform vec4 color;
uniform float useExistingAlpha;
void main()
{
lowp vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);
gl_FragColor = vec4(color.rgb, max(textureColor.a, 1.0 - useExistingAlpha));
}
);
#else
NSString *const kGPUSolidColorFragmentShaderString = SHADER_STRING
(
varying vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform vec4 color;
uniform float useExistingAlpha;
void main()
{
vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);
gl_FragColor = vec4(color.rgb, max(textureColor.a, 1.0 - useExistingAlpha));
}
);
#endif
本文由博客 - 猿說編程 猿說編程 發(fā)布!
文章題目:GPUImage – 純色 GPUImageSolidColorGenerator
網(wǎng)站鏈接:http://chinadenli.net/article48/dsoijep.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)建站、網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)公司、、網(wǎng)站設(shè)計(jì)、App設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容