1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

3d:: fog in non-native models

This commit is contained in:
Zeno Rogue 2019-03-20 21:16:46 +01:00
parent b62155b551
commit ad4ecbde0e
2 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,7 @@ void display_data::set_projection(int ed, bool apply_models) {
current_display->scrdist_text = cd->ysize;
}
else if(DIM == 3) {
glhr::projection_multiply(glhr::ortho(cd->xsize/current_display->radius/2, -cd->ysize/current_display->radius/2, 10));
glhr::projection_multiply(glhr::ortho(cd->xsize/current_display->radius/2, -cd->ysize/current_display->radius/2, 1));
current_display->scrdist_text = 0;
}
else {

View File

@ -587,6 +587,7 @@ void init() {
sh3 || sr3 || ball,"t[3] = 1.0;",
band || hp || s3 || ball,"gl_Position = uP * t;",
dim3 && !s3, "vColor.xyz = vColor.xyz * (1.0 - gl_Position.z / 2.0);",
1, "}"),
stringbuilder(