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
Post a Comment