x


Can I access lightmap values directly from within Unity's terrain splat shaders?

I'm trying to wrap my brain around Unity's built-in terrain shaders. My ultimate goal is to reduce the amount of memory consumed by my terrain tiles' textures and lightmaps. This led me to the terrain shaders, and now I'm trying to figure out how to access lightmap data directly from the terrain shaders (specifically, "Hidden/TerrainEngine/Splatmap/Lightmap-FirstPass").

By the way, I'm not even sure I'm asking the right question, so any guidance is much appreciated.

more ▼

asked Dec 18 '10 at 09:42 PM

novo gravatar image

novo
93 5 5 11

Not quite sure how this would help...the way to reduce memory consumed is to use compression (DXT) or smaller textures.

Dec 18 '10 at 09:49 PM Eric5h5

Right, but when I use DXT1 to minimize the size, the lightmap values get interpreted poorly by the builtin shaders. I want to start trying to muck about with interpreting the lightmap myself and am just trying to figure out the best way to do that.

Dec 18 '10 at 10:32 PM novo

And DXT5, of course, results in a texture that consumes twice as much memory, but I don't need the extra precision it provides.

Dec 18 '10 at 10:33 PM novo
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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:

x1649
x1467
x327

asked: Dec 18 '10 at 09:42 PM

Seen: 1346 times

Last Updated: Dec 18 '10 at 09:42 PM