Game Development Reference
In-Depth Information
Step 2 - creating a texture painting script
We've now created a shader that accepts two textures as input (the top and bottom
textures) and blends the top over the bottom; this allows alpha transparency.
This results in a Photoshop-layer style effect. This allows us to separate texture
painting onto a top texture while preserving the pixels of the original background
below it, as shown here:
Creating a texture painting script
Before moving further, however, we must first edit the brush texture asset we
plan on using via Object Inspector. Specifically, select the brush texture from the
Project panel in the Unity Editor and change Texture Type to Advanced . Enable
the checkbox for Read/Write Enabled ; this allows the texture to be accessed using
texture-editing functions.
 
Search WWH ::




Custom Search