summaryrefslogtreecommitdiff
path: root/scene/resources/sky.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/sky.cpp')
-rw-r--r--scene/resources/sky.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/resources/sky.cpp b/scene/resources/sky.cpp
index 1185b693b7..cbe86b16b2 100644
--- a/scene/resources/sky.cpp
+++ b/scene/resources/sky.cpp
@@ -39,7 +39,7 @@ void Sky::set_radiance_size(RadianceSize p_size) {
static const int size[RADIANCE_SIZE_MAX] = {
32, 64, 128, 256, 512, 1024, 2048
};
- VS::get_singleton()->sky_set_radiance_size(sky, size[radiance_size]);
+ RS::get_singleton()->sky_set_radiance_size(sky, size[radiance_size]);
}
Sky::RadianceSize Sky::get_radiance_size() const {
@@ -49,7 +49,7 @@ Sky::RadianceSize Sky::get_radiance_size() const {
void Sky::set_process_mode(ProcessMode p_mode) {
mode = p_mode;
- VS::get_singleton()->sky_set_mode(sky, VS::SkyMode(mode));
+ RS::get_singleton()->sky_set_mode(sky, RS::SkyMode(mode));
}
Sky::ProcessMode Sky::get_process_mode() const {
@@ -61,7 +61,7 @@ void Sky::set_material(const Ref<Material> &p_material) {
RID material_rid;
if (sky_material.is_valid())
material_rid = sky_material->get_rid();
- VS::get_singleton()->sky_set_material(sky, material_rid);
+ RS::get_singleton()->sky_set_material(sky, material_rid);
}
Ref<Material> Sky::get_material() const {
@@ -104,10 +104,10 @@ void Sky::_bind_methods() {
Sky::Sky() {
mode = PROCESS_MODE_QUALITY;
radiance_size = RADIANCE_SIZE_256;
- sky = VS::get_singleton()->sky_create();
+ sky = RS::get_singleton()->sky_create();
}
Sky::~Sky() {
- VS::get_singleton()->free(sky);
+ RS::get_singleton()->free(sky);
} \ No newline at end of file