Cogs.Core
CurtainViewComponent.h
1#pragma once
2
3#include "Resources/Buffer.h"
4
5#include "Foundation/ComponentModel/Component.h"
6
7#include <glm/vec3.hpp>
8
9namespace Cogs::Core::CurtainView
10{
12 {
13 static void registerType();
14
16
17 bool gradientClamp = true;
18 bool shadedCurtain = false;
19
20 glm::vec3 specular = glm::vec3(0.2f);
21 float gloss = 0.6f;
22
23 float min = -1.0f;
24 float max = 1.0f;
25
26 uint32_t depth = 100;
27
28 BufferView<glm::vec3> positions;
30 BufferView<uint32_t> sampleOffsets;
32 BufferView<float> velocity;
33 };
34}// namespace ...
35
36template<> inline Cogs::StringView getName<Cogs::Core::CurtainView::CurtainViewComponent>() { return "CurtainViewComponent"; }
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
BufferView provides a typed, reference-counted, span of an underlying buffer resource.
Definition: Buffer.h:118
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.