textures - How to wipe dirt away from glass? Unity3D -


i need wipe away dirt pane of glass. thinking change texture @ area wiped, or dirt separate object gets destroyed reveal clean glass, can't figure out how either of without changing entire pane of glass @ once.

look writing shader takes takes clean texture, dirty texture, , third texture lerp between clean , dirty texture.

you need draw third texture on cpu using texture2d.setpixel() & texture2d.getpixel() , make pixels around finger darker based on distance.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -