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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -