Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize CSM scripts #24

Open
rehno-lindeque opened this issue Nov 29, 2011 · 1 comment
Open

Parameterize CSM scripts #24

rehno-lindeque opened this issue Nov 29, 2011 · 1 comment

Comments

@rehno-lindeque
Copy link
Contributor

Parameterize scripts and models in order to control them using GUI controls.

@rehno-lindeque
Copy link
Contributor Author

Some stuff to take note of:

  • We should supply default values for all parameters
  • How do we differentiate between integer values and floating point values and is it necessary? So far, hopefully not since javascript easily converts between the two... however for the GUI we may want to generate different controls depending on the interval (perhaps add an optional interval for a range type of parameter)
  • Generate uniforms in the GLSL compiler to correspond with parameters
  • Generate gui controls for CSM parameters (think about how these will look...)

Types of parameters? Ideas so far... (where [interval] is optional, used to restrict to integers but also floating values)

  • range(start, end, [interval])
  • param([interval])

rehno-lindeque added a commit that referenced this issue Dec 15, 2011
…(see #24) and glsl idiosyncracies like converting integers to floats in certain situations (see #35).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant