@@ -37,7 +37,7 @@ RID ProceduralSkyMaterial::shader;
37
37
38
38
void ProceduralSkyMaterial::set_sky_top_color (const Color &p_sky_top) {
39
39
sky_top_color = p_sky_top;
40
- RS::get_singleton ()->material_set_param (_get_material (), " sky_top_color" , sky_top_color. to_linear () );
40
+ RS::get_singleton ()->material_set_param (_get_material (), " sky_top_color" , sky_top_color);
41
41
}
42
42
43
43
Color ProceduralSkyMaterial::get_sky_top_color () const {
@@ -46,7 +46,7 @@ Color ProceduralSkyMaterial::get_sky_top_color() const {
46
46
47
47
void ProceduralSkyMaterial::set_sky_horizon_color (const Color &p_sky_horizon) {
48
48
sky_horizon_color = p_sky_horizon;
49
- RS::get_singleton ()->material_set_param (_get_material (), " sky_horizon_color" , sky_horizon_color. to_linear () );
49
+ RS::get_singleton ()->material_set_param (_get_material (), " sky_horizon_color" , sky_horizon_color);
50
50
}
51
51
52
52
Color ProceduralSkyMaterial::get_sky_horizon_color () const {
@@ -73,7 +73,7 @@ float ProceduralSkyMaterial::get_sky_energy() const {
73
73
74
74
void ProceduralSkyMaterial::set_ground_bottom_color (const Color &p_ground_bottom) {
75
75
ground_bottom_color = p_ground_bottom;
76
- RS::get_singleton ()->material_set_param (_get_material (), " ground_bottom_color" , ground_bottom_color. to_linear () );
76
+ RS::get_singleton ()->material_set_param (_get_material (), " ground_bottom_color" , ground_bottom_color);
77
77
}
78
78
79
79
Color ProceduralSkyMaterial::get_ground_bottom_color () const {
@@ -82,7 +82,7 @@ Color ProceduralSkyMaterial::get_ground_bottom_color() const {
82
82
83
83
void ProceduralSkyMaterial::set_ground_horizon_color (const Color &p_ground_horizon) {
84
84
ground_horizon_color = p_ground_horizon;
85
- RS::get_singleton ()->material_set_param (_get_material (), " ground_horizon_color" , ground_horizon_color. to_linear () );
85
+ RS::get_singleton ()->material_set_param (_get_material (), " ground_horizon_color" , ground_horizon_color);
86
86
}
87
87
88
88
Color ProceduralSkyMaterial::get_ground_horizon_color () const {
0 commit comments