How to access a value via script?
Posted: Sun Sep 09, 2018 11:38 pm
Hi there,
Is there a way to access a value that's being calculated by a shader at runtime (that isn't an input value that can be set to Property)?
For example I'm using sine of time and remapping the values to within a certain range to alter a value over time in my shader. I'm wanting to access via script what the result of those calculations are at any given time to affect something else. All I've been able to find so far is accessing values that are set to Property which are used as inputs via script, not the result of something being calculated within the shader.
Thanks!
Is there a way to access a value that's being calculated by a shader at runtime (that isn't an input value that can be set to Property)?
For example I'm using sine of time and remapping the values to within a certain range to alter a value over time in my shader. I'm wanting to access via script what the result of those calculations are at any given time to affect something else. All I've been able to find so far is accessing values that are set to Property which are used as inputs via script, not the result of something being calculated within the shader.
Thanks!