Files
WickedEngine/WickedEngine/wiTrailRenderer.h
T
Turánszki János 30e7b60acb trail renderer (#811)
2024-03-11 18:01:39 +01:00

36 lines
829 B
C++

#pragma once
#include "CommonInclude.h"
#include "wiVector.h"
#include "wiGraphicsDevice.h"
#include "wiEnums.h"
#include "wiScene_Decl.h"
namespace wi
{
struct TrailRenderer
{
struct TrailPoint
{
XMFLOAT3 position = XMFLOAT3(0, 0, 0);
float width = 1;
XMFLOAT4 color = XMFLOAT4(1, 1, 1, 1);
};
wi::vector<TrailPoint> points;
wi::vector<uint32_t> cuts;
XMFLOAT4 color = XMFLOAT4(1, 1, 1, 1);
wi::enums::BLENDMODE blendMode = wi::enums::BLENDMODE_ALPHA;
uint32_t subdivision = 100;
float width = 1;
wi::graphics::Texture texture;
wi::graphics::Texture texture2;
XMFLOAT4 texMulAdd = XMFLOAT4(1, 1, 0, 0);
XMFLOAT4 texMulAdd2 = XMFLOAT4(1, 1, 0, 0);
void Cut();
void Draw(const wi::scene::CameraComponent& camera, wi::graphics::CommandList cmd) const;
static void Initialize();
};
}