Skip to content

Instantly share code, notes, and snippets.

@joshuazt
Created June 16, 2022 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuazt/a8caa3b2db5168f5df74fbb2399fbec0 to your computer and use it in GitHub Desktop.
Save joshuazt/a8caa3b2db5168f5df74fbb2399fbec0 to your computer and use it in GitHub Desktop.
float scale = chf('scale');
matrix3 trn = primintrinsic(0, "transform", @primnum);
matrix scalem = maketransform(0, 0, {0,0,0}, {0,0,0}, scale, @P);
trn *= matrix3(scalem);
setprimintrinsic(0, "transform", @primnum, trn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment