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
@@ -13,7 +13,7 @@
#include <draw.h>
#include "math/m4x4.hpp"
#include "math/vec4.hpp"
#include "./pipeline_shading_type.hpp"
#include "../pipeline_shading_type.hpp"
namespace Tyra {
@@ -36,6 +36,7 @@ class PipelineInfoBag {
* Full clip checks are slow, but they are
* preventing visual artifacts, which can happen
* for big 3D objects (or objects near camera eyes)
* Force enabled in dynamic pipe, because of efficiency.
*/
bool noFullClipChecks;
};
@@ -0,0 +1,44 @@
/*
# ______ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2022, tyra - https://github.com/h4570/tyra
# Licenced under Apache License 2.0
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#pragma once
#include "math/vec4.hpp"
#include "renderer/models/color.hpp"
namespace Tyra {
class PipelineLightingOptions {
public:
PipelineLightingOptions() {}
~PipelineLightingOptions() {}
/**
* Mandatory.
* Default 128.0F, 128.0F, 128.0F, 128.0F
*/
Color* ambientColor;
/**
* Mandatory.
* Min/max length - 3.
* Example color value: 64.0F, 0.0F, 0.0F, 1.0F
*/
Color* directionalColors;
/**
* Mandatory.
* Min/max length - 3.
* Example dir value: 1.0F, 0.0F, 0.0F, 1.0F
*/
Vec4* directionalDirections;
};
} // namespace Tyra
@@ -13,8 +13,8 @@
namespace Tyra {
enum PipelineShadingType {
StaPipShadingFlat,
StaPipShadingGouraud,
TyraShadingFlat,
TyraShadingGouraud,
};
} // namespace Tyra