Skip to content

Instantly share code, notes, and snippets.

@JeOam
Created September 23, 2018 04:46
Show Gist options
  • Save JeOam/30efe6861a78ed23ef0e6252cb82fb9b to your computer and use it in GitHub Desktop.
Save JeOam/30efe6861a78ed23ef0e6252cb82fb9b to your computer and use it in GitHub Desktop.
Unity Shader Notes
@JeOam
Copy link
Author

JeOam commented Nov 27, 2018

if (w < 0) w = 0;
if (w > 1) w = 1;
// 等于
w = clamp(w, 0, 1);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment