~vladh/peony

peony/src/models_data.hpp -rw-r--r-- 1.7 KiB
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

constexpr v3 CUBEMAP_OFFSETS[6] = {
  v3(1.0f, 0.0f, 0.0f),
  v3(-1.0f, 0.0f, 0.0f),
  v3(0.0f, 1.0f, 0.0f),
  v3(0.0f, -1.0f, 0.0f),
  v3(0.0f, 0.0f, 1.0f),
  v3(0.0f, 0.0f, -1.0f)
};

constexpr v3 CUBEMAP_UPS[6] = {
  v3(0.0f, -1.0f, 0.0f),
  v3(0.0f, -1.0f, 0.0f),
  v3(0.0f, 0.0f, 1.0f),
  v3(0.0f, 0.0f, -1.0f),
  v3(0.0f, -1.0f, 0.0f),
  v3(0.0f, -1.0f, 0.0f)
};

constexpr Vertex AXES_VERTICES[] = {
  {.position = {0.0f,  0.0f,  0.0f }, .normal = {1.0f, 0.0f, 0.0f}, .tex_coords = {0.0f, 0.0f}},
  {.position = {20.0f, 0.0f,  0.0f }, .normal = {1.0f, 0.0f, 0.0f}, .tex_coords = {0.0f, 0.0f}},
  {.position = {0.0f,  0.0f,  0.0f }, .normal = {0.0f, 1.0f, 0.0f}, .tex_coords = {0.0f, 0.0f}},
  {.position = {0.0f,  20.0f, 0.0f }, .normal = {0.0f, 1.0f, 0.0f}, .tex_coords = {0.0f, 0.0f}},
  {.position = {0.0f,  0.0f,  0.0f }, .normal = {0.0f, 0.0f, 1.0f}, .tex_coords = {0.0f, 0.0f}},
  {.position = {0.0f,  0.0f,  20.0f}, .normal = {0.0f, 0.0f, 1.0f}, .tex_coords = {0.0f, 0.0f}},
};

constexpr Vertex SCREENQUAD_VERTICES[] = {
  {.position = {-1.0f,  1.0f, 0.0f}, .normal = {0.0f, 0.0f, 0.0f}, .tex_coords = {0.0f, 1.0f}},
  {.position = {-1.0f, -1.0f, 0.0f}, .normal = {0.0f, 0.0f, 0.0f}, .tex_coords = {0.0f, 0.0f}},
  {.position = { 1.0f, -1.0f, 0.0f}, .normal = {0.0f, 0.0f, 0.0f}, .tex_coords = {1.0f, 0.0f}},
  {.position = {-1.0f,  1.0f, 0.0f}, .normal = {0.0f, 0.0f, 0.0f}, .tex_coords = {0.0f, 1.0f}},
  {.position = { 1.0f, -1.0f, 0.0f}, .normal = {0.0f, 0.0f, 0.0f}, .tex_coords = {1.0f, 0.0f}},
  {.position = { 1.0f,  1.0f, 0.0f}, .normal = {0.0f, 0.0f, 0.0f}, .tex_coords = {1.0f, 1.0f}},
};