init of dynpip bag

This commit is contained in:
h4570
2022-07-19 13:16:18 +02:00
parent 7fd2926d1d
commit 4e0785754e
18 changed files with 406 additions and 49 deletions
+2 -2
View File
@@ -160,12 +160,12 @@ StaPipOptions* getRenderingOptions() {
for (int i = 0; i < 3; i++)
directionalDirections[i].set(1.0F, 1.0F, 1.0F, 1.0F);
auto* lightingOptions = new StaPipLightingOptions(); // Memory leak!
auto* lightingOptions = new PipelineLightingOptions(); // Memory leak!
lightingOptions->ambientColor = ambientColor;
lightingOptions->directionalColors = directionalColors;
lightingOptions->directionalDirections = directionalDirections;
options->shadingType = Tyra::StaPipShadingGouraud;
options->shadingType = Tyra::TyraShadingGouraud;
options->blendingEnabled = true;
options->antiAliasingEnabled = false;
options->lighting = lightingOptions;