This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| shader_type canvas_item; | |
| render_mode blend_mix; | |
| uniform float global_rotation = 0.0; | |
| mat2 getRotationMatrix(float angle){ | |
| float r = radians(angle); | |
| float cs = cos(r); | |
| float sn = sin(r); | |
| return mat2( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends Node | |
| var steam_powered: bool = false | |
| const STEAM_APP_ID = 480 | |
| enum Achievements { | |
| MY_AWESOME_ACHIEVEMENT0, | |
| MY_AWESOME_ACHIEVEMENT1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| import os | |
| def rotate_and_render(angle, output_dir, output_set): | |
| newcamera = "Camera.00"+str(angle) | |
| bpy.context.scene.camera = bpy.context.scene.objects[newcamera] #set camera | |
| bpy.context.scene.render.filepath = os.path.join(output_dir, output_set+str(angle)+".png") #set export path | |
| bpy.ops.render.render(write_still = True) #start rendering |