Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

ability to control shader parameters of existing object? (feature request) #738

Open
djzielin opened this issue Jan 28, 2021 · 1 comment

Comments

@djzielin
Copy link

Might be nice to allow control of parameters of advanced shaders. That way can just send one piece of data, and have big graphical changes.

@GoogolHz
Copy link

GoogolHz commented Feb 7, 2021

There is a hackish way to do this: An MRE could manipulate colors and positions of elements in special layer that also includes a camera that culls all other layers, and only sees this special layer. The camera renders to a render texture that is referenced in the shader. The shader can 'walk through' (analyse) the texture and modify its values based on what it finds: THink of it this way: The mre may have a UI 'slider' that also moves the x position of an MRE element in ~layer20, and camera renders this change to a texture, the shader reads the x position of the element representing the modified slider, and this drives a property of the shader.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants