mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
shader fixup
This commit is contained in:
parent
25d2f6242e
commit
30eda241a8
2
glhr.cpp
2
glhr.cpp
@ -229,8 +229,6 @@ EX void projection_multiply(const glmatrix& m) {
|
|||||||
|
|
||||||
EX void init();
|
EX void init();
|
||||||
|
|
||||||
// https://www.opengl.org/sdk/docs/tutorials/ClockworkCoders/attributes.php
|
|
||||||
|
|
||||||
#if HDR
|
#if HDR
|
||||||
struct GLprogram : std::enable_shared_from_this<GLprogram> {
|
struct GLprogram : std::enable_shared_from_this<GLprogram> {
|
||||||
GLuint _program;
|
GLuint _program;
|
||||||
|
@ -28,6 +28,7 @@ constexpr flagtype SF_ZFOG = 65536;
|
|||||||
|
|
||||||
#if HDR
|
#if HDR
|
||||||
/* standard attribute bindings */
|
/* standard attribute bindings */
|
||||||
|
/* taken from: https://www.opengl.org/sdk/docs/tutorials/ClockworkCoders/attributes.php */
|
||||||
constexpr int aPosition = 0;
|
constexpr int aPosition = 0;
|
||||||
constexpr int aColor = 3;
|
constexpr int aColor = 3;
|
||||||
constexpr int aTexture = 8;
|
constexpr int aTexture = 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user