half render
This commit is contained in:
parent
83ee559ebc
commit
aeac5f5782
@ -7,8 +7,8 @@ fonts_folder = "libs/fonts"
|
|||||||
|
|
||||||
[window]
|
[window]
|
||||||
style = "None"
|
style = "None"
|
||||||
width = 1355
|
width = 2542
|
||||||
height = 1213
|
height = 1489
|
||||||
visible = true
|
visible = true
|
||||||
gui_scale = 1
|
gui_scale = 1
|
||||||
caption = "Difficult Rocket v{DR_version}|DR_rs v{DR_Rust_get_version}"
|
caption = "Difficult Rocket v{DR_version}|DR_rs v{DR_Rust_get_version}"
|
||||||
|
@ -196,8 +196,8 @@ class SR1ShipRender(BaseScreen):
|
|||||||
if DR_mod_runtime.use_DR_rust:
|
if DR_mod_runtime.use_DR_rust:
|
||||||
part_type = self.part_list_rs.get_part_type(part.p_type)
|
part_type = self.part_list_rs.get_part_type(part.p_type)
|
||||||
if part_type is not None:
|
if part_type is not None:
|
||||||
part_width = part_type.width * 60
|
part_width = part_type.width * 15
|
||||||
part_height = part_type.height * 60
|
part_height = part_type.height * 15
|
||||||
part_box = Rectangle(x=render_x, y=render_y,
|
part_box = Rectangle(x=render_x, y=render_y,
|
||||||
width=part_width, height=part_height,
|
width=part_width, height=part_height,
|
||||||
batch=self.part_box_batch, group=self.part_group)
|
batch=self.part_box_batch, group=self.part_group)
|
||||||
@ -276,12 +276,9 @@ class SR1ShipRender(BaseScreen):
|
|||||||
self.need_update_parts = False
|
self.need_update_parts = False
|
||||||
|
|
||||||
with self.camera_rs:
|
with self.camera_rs:
|
||||||
from pyglet.gl import glEnable, glDisable, glDepthFunc, GL_DEPTH_TEST, GL_LEQUAL
|
|
||||||
glEnable(GL_DEPTH_TEST)
|
|
||||||
glDepthFunc(GL_LEQUAL)
|
|
||||||
self.part_box_batch.draw()
|
self.part_box_batch.draw()
|
||||||
self.part_batch.draw()
|
self.part_batch.draw()
|
||||||
glDisable(GL_DEPTH_TEST)
|
self.part_box_batch.draw()
|
||||||
|
|
||||||
self.debug_label.draw()
|
self.debug_label.draw()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user