tahtituho / shader-system

simple framework for shader coding and music sync
The Unlicense
1 stars 0 forks source link

Persistent and keyboard/mouse controllable variables #42

Closed helgrima closed 3 years ago

helgrima commented 3 years ago

Shader system needs feature which allows uniform variables to be marked as persistent, which means that variables value is read from shader and passed back to shader in next pass. Needs also some way to print values of persistent variables to screen, or even better push then to clipboard.

Shader system needs feature to read specific set of keyboard keys. These keys should be WASD and position of mouse cursor when left mouse button is pressed.

These two features combined would be easy to implement user controllable camera when rendering 3D scenes in shaders.

helgrima commented 3 years ago

It seems that persistent variables are not that easy to implement. Let's go with second best idea: maintain virtual 3D space in shader system. Position in this 3D space should be controlled with WASD.

helgrima commented 3 years ago

Might be that complete camera controls has to be implemented to achieve was is needed.

helgrima commented 3 years ago

fixed in #50