x


Writing fragment shader data to RenderTexture

I have a shader that computes complex functions to generate a height map. When I apply this shader to a material and then to a plane, the height map displays correctly.

Now, I need to access the height map's data in scripts, which I think can only be done with a RenderTexture (correct me if I'm wrong). I saw multiple tutorials to render the camera's view to a RenderTexture but I can't quite find a solution.

Any help would be greatly appreciated.

more ▼

asked Jun 22 '12 at 01:00 AM

jesta gravatar image

jesta
61 8 8 11

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

x2205
x1660
x1478
x300
x194

asked: Jun 22 '12 at 01:00 AM

Seen: 664 times

Last Updated: Jun 22 '12 at 01:00 AM