提交 836d4ba9 编写于 作者: 三月三net's avatar 三月三net

Python超人-宇宙模拟器

上级 c616a5bf
...@@ -53,7 +53,7 @@ if __name__ == '__main__': ...@@ -53,7 +53,7 @@ if __name__ == '__main__':
sun.look_at(moon.planet.position) sun.look_at(moon.planet.position)
sun.rotation_x = 0 sun.rotation_x = 0
Entity.sun = sun Entity.sun = sun
sun._light.show_frustum() # sun._light.show_frustum()
# 创建太阳光 # 创建太阳光
shadows_shader = create_directional_light(position=(200, 0, -300), target=earth, shadows=True) shadows_shader = create_directional_light(position=(200, 0, -300), target=earth, shadows=True)
earth.planet.shadows = shadows_shader earth.planet.shadows = shadows_shader
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册