This file contains hidden or 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
| MIN_INSIDE_FACES = 4; | |
| MIN_INSIDE_PERCENTAGE = 0.03f; | |
| int cubemap_sides_seeing_inside = 0; | |
| for (int i = 0; i < 6; i++) | |
| { | |
| RenderCubeMapSide(i); | |
| float backfacePercentage = CalculateBackfacePercentage(i); | |
This file contains hidden or 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 settings = new XmlWriterSettings() | |
| { | |
| NewLineOnAttributes = true | |
| }; | |
| using(XmlWriter writer = XmlWriter.Create(filestream, settings)) | |
| { | |
| // Write out document.. | |
| } |
NewerOlder