MotionBlur.py 文件源码

python
阅读 37 收藏 0 点赞 0 评论 0

项目:UPBGE-CommunityAddon 作者: elmeunick9 项目源码 文件源码
def update(self):
        from bge import logic as G
        import math

        scene = G.getCurrentScene()
        own = self.own

        cam = scene.active_camera
        wtc = cam.world_to_camera

        own['rota'] = math.degrees(cam.localOrientation.to_euler().x)

        if 'init' not in own:
            set = cam.projection_matrix * wtc
            own['prev'] = set
            own['init'] = True
            self = MotionBlur
        set = (cam.projection_matrix * wtc)
        cameraMatrix = own['prev']

        self.x = cameraMatrix
        self.viewProjectionInverse = set.inverted()

        own['prev'] = set
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号