x


Send data from a inner CG variable back to a Shaderlab property, is it possible?

I know that you can get data from a Shaderlab property to a CG inner program, is there a way to get a variable value back to a Shaderlab property from the inner CG program?

more ▼

asked Jan 27 '10 at 06:21 PM

Kelvin gravatar image

Kelvin
22 2 2 3

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

1 answer: sort voted first

The short answer is no, the long answer is yes but only if you are able to write the data to a texture and then read the texture in a script, which can be a slow process and quite often negates the purpose of the shader in the first place.

more ▼

answered Jan 28 '10 at 10:46 PM

Murcho gravatar image

Murcho
2.7k 12 23 53

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

x1667
x492
x88

asked: Jan 27 '10 at 06:21 PM

Seen: 1300 times

Last Updated: Jan 27 '10 at 06:21 PM