x


How can i choose the UV than i want to use with each Texture of a material ?

i have a huge building with a lightmapped/bumped-specular material. I got 2 UV. UV1 (tilling) is for the diffuse. UV2 (unwrap) is for the lightmap. Unity automatically affect bumpmap to UV1, but i want to use it on the UV2 to draw scars on the building, how can i do this ? Does it possible to choose the uv channel for each texture of a material ?

more ▼

asked Mar 03 '10 at 02:38 PM

fabou gravatar image

fabou
2 1 2 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Sure, just duplicate/edit the shader to fit your needs. Download the source of the shaders (it's on unitywiki, probably on unity's site as well) and copy/paste the content of the lightmapped/bumped-specular shader into a new shader, edit away.

In time, don't be afraid of editing shaders. They're quite simple to understand and tweak - not to mention extremely powerful.

more ▼

answered May 26 '10 at 02:30 PM

MaDDoX gravatar image

MaDDoX
165 8

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2199
x813
x292
x237
x12

asked: Mar 03 '10 at 02:38 PM

Seen: 1809 times

Last Updated: Mar 03 '10 at 02:38 PM