x


How Apply Different UV maps in Lightmaped Diffuse

I want to make material (Lightmaped Diffuse) with A different UV on (Base RGB) And A different UV Map on (Lightmap RGB).alt text

Please help me in detail i am new to Unity please please help me

more ▼

asked Dec 18 '10 at 06:23 PM

Ayaz gravatar image

Ayaz
1 2 2 2

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

1 answer: sort voted first

You need to learn to (re) write shaders. The Material GUI is just an interface for working with shader parameters.

With the shader you're already using, UV1 is used for "Base", and UV2 is used for "Lightmap". Why you'd want to switch them around, I don't know, but you can do so by switching "uv_" and "uv2_" around in its code. I assume that's what you're talking about; Unity only allows two UV sets.

Get the source code here (the first sticky) or here.

more ▼

answered Dec 18 '10 at 07:37 PM

Jessy gravatar image

Jessy
15.6k 72 95 196

(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:

x328
x238
x200
x54
x51

asked: Dec 18 '10 at 06:23 PM

Seen: 1377 times

Last Updated: Dec 18 '10 at 06:23 PM