init of dynpip bag
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
# ______ ____ ___
|
||||
# | \/ ____| |___|
|
||||
# | | | \ | |
|
||||
#-----------------------------------------------------------------------
|
||||
# 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 StaPipLightingOptions {
|
||||
public:
|
||||
StaPipLightingOptions() {}
|
||||
~StaPipLightingOptions() {}
|
||||
|
||||
/**
|
||||
* 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
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "renderer/3d/pipeline/shared/bag/pipeline_shading_type.hpp"
|
||||
#include "./stapip_lighting_options.hpp"
|
||||
#include "renderer/3d/pipeline/shared/pipeline_shading_type.hpp"
|
||||
#include "../shared/pipeline_lighting_options.hpp"
|
||||
|
||||
namespace Tyra {
|
||||
|
||||
@@ -35,7 +35,7 @@ class StaPipOptions {
|
||||
bool noFullClipChecks;
|
||||
|
||||
/** Optional */
|
||||
StaPipLightingOptions* lighting;
|
||||
PipelineLightingOptions* lighting;
|
||||
};
|
||||
|
||||
} // namespace Tyra
|
||||
|
||||
@@ -12,10 +12,11 @@
|
||||
|
||||
#include <tamtypes.h>
|
||||
#include "../renderer_3d_pipeline.hpp"
|
||||
#include "./stapip_options.hpp"
|
||||
#include "../shared/pipeline_lighting_options.hpp"
|
||||
#include "renderer/core/renderer_core.hpp"
|
||||
#include "renderer/3d/mesh/dynamic/dynamic_mesh.hpp"
|
||||
#include "./core/stapip_core.hpp"
|
||||
#include "./stapip_options.hpp"
|
||||
|
||||
namespace Tyra {
|
||||
|
||||
@@ -54,7 +55,7 @@ class StaticPipeline : public Renderer3DPipeline {
|
||||
const StaPipOptions* options) const;
|
||||
void deallocDrawBags(StaPipBag* bag, MeshMaterial* material) const;
|
||||
|
||||
void setLightingColorsCache(StaPipLightingOptions* lightingOptions);
|
||||
void setLightingColorsCache(PipelineLightingOptions* lightingOptions);
|
||||
};
|
||||
|
||||
} // namespace Tyra
|
||||
|
||||
Reference in New Issue
Block a user