mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
3d:: fog in non-native models
This commit is contained in:
parent
b62155b551
commit
ad4ecbde0e
@ -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 {
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user