package Ġcom . she ve lev . wizard _ camera . shared Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . opengl . GLES 3 1 Ċ import Ġcom . she ve lev . wizard _ camera . camera . R Ċ import Ġcom . she ve lev . wizard _ camera . camera . renderer . utils . Texture Utils Ċ import Ġcom . she ve lev . wizard _ camera . common _ entities . enums . Mapping Filter Texture Ċ import Ġcom . she ve lev . wizard _ camera . common _ entities . filter _ settings . gl . Mapping Filter Settings Ċ Ċ /** Ċ Ġ* ĠA Ġclass Ġfor Ġpassing Ġ[ Mapping Filter Settings ] Ġinto Ġan ĠO GL Ġfilter Ċ Ġ*/ Ċ class ĠMapping GL Filter Settings ( ĊĠĠĠ Ġprivate Ġval Ġcontext : ĠContext , ĊĠĠĠ Ġsettings : ĠMapping Filter Settings Ċ ) Ġ: ĠGL Filter Settings Base < Mapping Filter Settings >( settings ) Ġ{ ĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠP asses Ġparams ĊĠĠĠĠ Ġ* Ġ@ param Ġprogram ĠO GL Ġprogram ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġoverride Ġfun Ġpass Settings Params ( program : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtexture Id Ġ= Ġload Texture ( settings . texture ) ĊĊĠĠĠĠĠĠĠ Ġval Ġs Texture Location Ġ= ĠGLES 3 1 . glGet UniformLocation ( program , Ġ" i Channel 1 ") ĊĠĠĠĠĠĠĠ ĠGLES 3 1 . gl Active Texture ( GLES 3 1 . GL _ TEXTURE 0 Ġ+ Ġ 1 ) ĊĠĠĠĠĠĠĠ ĠGLES 3 1 . glBind Texture ( GLES 3 1 . GL _ TEXTURE _ 2 D , Ġtexture Id ) ĊĠĠĠĠĠĠĠ ĠGLES 3 1 . gl Uniform 1 i ( s Texture Location , Ġ 1 ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmix Factor Ġ= ĠGLES 3 1 . glGet UniformLocation ( program , Ġ" mix Factor ") ĊĠĠĠĠĠĠĠ ĠGLES 3 1 . gl Uniform 1 f ( mix Factor , Ġsettings . mix Factor . toFloat () Ġ/ Ġ 1 0 f ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġload Texture ( texture : ĠMapping Filter Texture ): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtexture Res Ġ= Ġwhen ( texture ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 0 Ġ-> ĠR . raw . mapping _ tex 0 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 1 Ġ-> ĠR . raw . mapping _ tex 1 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 2 Ġ-> ĠR . raw . mapping _ tex 2 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 3 Ġ-> ĠR . raw . mapping _ tex 3 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 4 Ġ-> ĠR . raw . mapping _ tex 4 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 5 Ġ-> ĠR . raw . mapping _ tex 5 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 6 Ġ-> ĠR . raw . mapping _ tex 6 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 7 Ġ-> ĠR . raw . mapping _ tex 7 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 8 Ġ-> ĠR . raw . mapping _ tex 8 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 9 Ġ-> ĠR . raw . mapping _ tex 9 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 1 0 Ġ-> ĠR . raw . mapping _ tex 1 0 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 1 1 Ġ-> ĠR . raw . mapping _ tex 1 1 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 1 2 Ġ-> ĠR . raw . mapping _ tex 1 2 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 1 3 Ġ-> ĠR . raw . mapping _ tex 1 3 ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMapping Filter Texture . TEXTURE _ 1 4 Ġ-> ĠR . raw . mapping _ tex 1 4 ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn ĠTexture Utils . load Texture ( context , Ġtexture Res , ĠInt Array ( 2 )) ĊĠĠĠ Ġ} Ċ }