Skip to content

Instantly share code, notes, and snippets.

@GarethIW
Created January 16, 2017 15:22
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 GarethIW/08918287f4a798c3b85c6220c782c8af to your computer and use it in GitHub Desktop.
Save GarethIW/08918287f4a798c3b85c6220c782c8af to your computer and use it in GitHub Desktop.
var frame = GetComponent<Volume>().Frames[0];
for(int i=0;i<frame.Voxels.Length;i++)
{
var c = frame.Voxels[i].Color; // get the current voxel colour
c.a = 0; // set the alpha
frame.Voxels[i].Color = c; // set the colour back
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment