I've been using Unity (5.5.2) a grand total of 3 days now. I am trying to render an asset (such as a tree) as a solid mat color to appear 2d, (ie: No shadows or lighting. As if someone cut the image out and painted it one solid color.). Then take a screen shot, then set it back to normal again. I've been looking at MaterialPropertyBlock and SetColor, but I think I'm missing something.
My guess is I will need to (in the case of a tree) make a texture that has the properties I want, texMask. Then, in the script copy each texture used in the asset (ie: Leaves, bark, fronds etc) then overwrite with my texMat. Take a screenshot the reset to the original textures. A friend suggested into self-illuminated materials.
Can someone please point me in the right direction?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
Do materials with shared textures take up twice the video memory?
3d model editing and multiple textures per material
Setting a material texture and saving it
Multiple Tiling Textures in the Same Material
Using one material for multiple textures