![]() ![]() Args: xyz (tuple(float), optional): Location. ![]() ![]() def add_light_area ( xyz = ( 0, 0, 0 ), rot_vec_rad = ( 0, 0, 0 ), name = None, energy = 100, size = 0.1 ): """Adds an area light that emits light rays the lambertian way. info ( "Sun lamp (parallel light) added" ) return sun default_value = energy else : raise NotImplementedError ( engine ) logger. shadow_soft_size = size # larger means softer shadows # Strength engine = bpy. light_add ( type = 'SUN', location = xyz, rotation = rot_vec_rad ) sun = bpy. """ bpy = preset_import ( 'bpy', assert_success = True ) bpy. size (float, optional): Light size for ray shadow tracing. energy (float, optional): Light intensity. rot_vec_rad (tuple(float), optional): Rotations in radians around x, y and z. Args: xyz (tuple(float), optional): Location only used to compute light ray direction. Def add_light_sun ( xyz = ( 0, 0, 0 ), rot_vec_rad = ( 0, 0, 0 ), name = None, energy = 1, size = 0.1 ): """Adds a sun lamp that emits parallel light rays. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |