Created
January 16, 2017 15:22
-
-
Save GarethIW/08918287f4a798c3b85c6220c782c8af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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