1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

More scene work, can display a skybox

This commit is contained in:
Juan Linietsky
2016-10-21 07:27:13 -03:00
parent 4428115916
commit cb34b70df1
15 changed files with 861 additions and 84 deletions

View File

@@ -620,6 +620,7 @@ public:
BIND1RC(uint32_t,texture_get_width,RID)
BIND1RC(uint32_t,texture_get_height,RID)
BIND3(texture_set_size_override,RID,int,int)
BIND3RC(RID,texture_create_pbr_cubemap,RID,PBRCubeMapMode,int)
@@ -848,15 +849,17 @@ public:
#undef BINDBASE
//from now on, calls forwarded to this singleton
#define BINDBASE VSG::scene
#define BINDBASE VSG::scene_render
BIND0R(RID,environment_create)
BIND2(environment_set_background,RID ,EnvironmentBG )
BIND3(environment_set_skybox,RID,RID ,float )
BIND4(environment_set_skybox,RID,RID ,int,int )
BIND2(environment_set_skybox_scale,RID,float)
BIND2(environment_set_bg_color,RID,const Color& )
BIND2(environment_set_bg_energy,RID,float )
BIND2(environment_set_canvas_max_layer,RID,int )
BIND3(environment_set_ambient_light,RID,const Color& ,float )
BIND4(environment_set_ambient_light,RID,const Color& ,float,float )
BIND7(environment_set_glow,RID,bool ,int ,float ,float ,float ,EnvironmentGlowBlendMode )
BIND5(environment_set_fog,RID,bool ,float ,float ,RID )
@@ -871,6 +874,9 @@ public:
/* SCENARIO API */
#undef BINDBASE
#define BINDBASE VSG::scene
BIND0R(RID,scenario_create)
BIND2(scenario_set_debug,RID,ScenarioDebugMode )