unity3d - Eraser effect in plane using shader -
i trying produce eraser material on plane.
the way thinking of doing passing array shader telling shader material should transparent; if value array 0, return no color material (i.e. tranparent). have 2 problems:
how declare , pass array in cg?
does way work , if so, best way this? thinking might demanding.
just use texture2d "array". can modify @ run-time (using setpixel or setpixels) , pass shader would.
and in shader appropriately manipulate base texture using "erased" texture. manipulate alpha or so.
given you're dealing simple plane, seem straightforward option.
Comments
Post a Comment