1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-26 07:16:02 +00:00

fixed projections not implemented in shaders disabling their 3D features

This commit is contained in:
Zeno Rogue
2025-09-07 22:41:00 +02:00
parent 0bf46acbf2
commit e0b82be00f
3 changed files with 6 additions and 5 deletions

View File

@@ -698,7 +698,7 @@ EX namespace models {
bool shaderside_projection = get_shader_flags() & SF_DIRECT;
if(vid.consider_shader_projection && !shaderside_projection)
dialog::lastItem().value = XLAT("N/A");
if(vid.consider_shader_projection && shaderside_projection && vpmodel)
if(vid.consider_shader_projection && shaderside_projection && (get_shader_flags() & SF_NONSPATIAL))
dialog::lastItem().value += XLAT(" (2D only)");
dialog::add_action([] { vid.consider_shader_projection = !vid.consider_shader_projection; });
#endif