Skip to content

Instantly share code, notes, and snippets.

@iondune
Last active March 31, 2016 09:37
Show Gist options
  • Select an option

  • Save iondune/686a262a36a33cbea93713808b0ec2e0 to your computer and use it in GitHub Desktop.

Select an option

Save iondune/686a262a36a33cbea93713808b0ec2e0 to your computer and use it in GitHub Desktop.
CUniform<color3f> uColor = Colors::Red;
ClothObjectFront->SetUniform("uColor", uColor);
// later
uColor = Colors::Blue;
// (this automatically changes the uniform used by the cloth object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment