mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
gradient background in floor texture
This commit is contained in:
parent
a528f56a98
commit
b8ad42a947
@ -825,6 +825,23 @@ void make_floor_textures() {
|
||||
current_display->set_mask(0);
|
||||
floor_textures->clear(0); // 0xE8E8E8 = 1
|
||||
|
||||
// gradient vertices
|
||||
vector<glhr::colored_vertex> gv;
|
||||
current_display->scrdist = 0;
|
||||
gv.emplace_back(-1, -1, 0, 0, 0);
|
||||
gv.emplace_back(+1, -1, 0, 0, 0);
|
||||
gv.emplace_back(+1, +1, 1, 1, 1);
|
||||
gv.emplace_back(-1, -1, 0, 0, 0);
|
||||
gv.emplace_back(+1, +1, 1, 1, 1);
|
||||
gv.emplace_back(-1, +1, 1, 1, 1);
|
||||
|
||||
glhr::switch_mode(glhr::gmVarColored, glhr::shader_projection::standard);
|
||||
glhr::new_projection();
|
||||
glhr::id_modelview();
|
||||
glhr::prepare(gv);
|
||||
glhr::set_depthtest(false);
|
||||
glDrawArrays(GL_TRIANGLES, 0, isize(gv));
|
||||
|
||||
shOverFloor.pstrength = 20;
|
||||
shFeatherFloor.pstrength = 40;
|
||||
shFeatherFloor.fstrength = 5;
|
||||
|
Loading…
Reference in New Issue
Block a user