From 61a74739ca2d201e7e057d85aa99ae68f0500c33 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 19 Mar 2020 17:32:19 -0700 Subject: Working sky shader implementation --- drivers/gles2/rasterizer_scene_gles2.cpp | 7 ------- drivers/gles2/rasterizer_scene_gles2.h | 3 --- 2 files changed, 10 deletions(-) (limited to 'drivers/gles2') diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp index 068b9f5538..c433886545 100644 --- a/drivers/gles2/rasterizer_scene_gles2.cpp +++ b/drivers/gles2/rasterizer_scene_gles2.cpp @@ -718,13 +718,6 @@ void RasterizerSceneGLES2::environment_set_sky_orientation(RID p_env, const Basi env->sky_orientation = p_orientation; } -void RasterizerSceneGLES2::environment_set_bg_material(RID p_env, RID p_material) { - Environment *env = environment_owner.getornull(p_env); - ERR_FAIL_COND(!env); - - env->bg_material = p_material; -} - void RasterizerSceneGLES2::environment_set_bg_color(RID p_env, const Color &p_color) { Environment *env = environment_owner.getornull(p_env); ERR_FAIL_COND(!env); diff --git a/drivers/gles2/rasterizer_scene_gles2.h b/drivers/gles2/rasterizer_scene_gles2.h index fda46072a5..174cdd8e2e 100644 --- a/drivers/gles2/rasterizer_scene_gles2.h +++ b/drivers/gles2/rasterizer_scene_gles2.h @@ -242,8 +242,6 @@ public: float sky_custom_fov; Basis sky_orientation; - RID bg_material; - Color bg_color; float bg_energy; float sky_ambient; @@ -359,7 +357,6 @@ public: virtual void environment_set_sky(RID p_env, RID p_sky); virtual void environment_set_sky_custom_fov(RID p_env, float p_scale); virtual void environment_set_sky_orientation(RID p_env, const Basis &p_orientation); - virtual void environment_set_bg_material(RID p_env, RID p_material); virtual void environment_set_bg_color(RID p_env, const Color &p_color); virtual void environment_set_bg_energy(RID p_env, float p_energy); virtual void environment_set_canvas_max_layer(RID p_env, int p_max_layer); -- cgit v1.2.3