opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
scene_decoration_shading.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <variant>
8
9namespace osc
10{
11 // the choice of shading that a `SceneRenderer` should use when drawing a `SceneDecoration`
12 using SceneDecorationShading = std::variant<
13
14 // draws the `SceneDecoration` with this `Color` using an implementation-defined `Material`
15 Color,
16
17 // draws the `SceneDecoration` with this `Material`
18 //
19 // note: the vertex shader for the `Material` should apply the decoration's transform
20 // to the decoration's mesh "normally" (`SceneRenderer` relies on knowing the
21 // world space mesh bounds etc. for various calculations)
23
24 // draws the `SceneDecoration` with this `(Material, MaterialPropertyBlock)` pair
25 //
26 // note: the vertex shader for the `Material` should apply the decoration's transform
27 // to the decoration's mesh "normally" (`SceneRenderer` relies on knowing the
28 // world space mesh bounds etc. for various calculations)
29 std::pair<Material, MaterialPropertyBlock>
30 >;
31}
Definition material.h:21
Definition custom_decoration_generator.h:5
Rgba< float > Color
Definition color.h:11
std::variant< Color, Material, std::pair< Material, MaterialPropertyBlock > > SceneDecorationShading
Definition scene_decoration_shading.h:30