mirror of
https://github.com/godotengine/godot
synced 2024-09-05 17:19:44 +00:00
Revert "Default to real-time radiance map filter for environment sky reflections"
This reverts commit 09563e4bd8
.
This commit is contained in:
parent
e0384fb70e
commit
63cb91e05c
|
@ -9,7 +9,7 @@
|
|||
<tutorials>
|
||||
</tutorials>
|
||||
<members>
|
||||
<member name="process_mode" type="int" setter="set_process_mode" getter="get_process_mode" enum="Sky.ProcessMode" default="3">
|
||||
<member name="process_mode" type="int" setter="set_process_mode" getter="get_process_mode" enum="Sky.ProcessMode" default="0">
|
||||
Sets the method for generating the radiance map from the sky. The radiance map is a cubemap with increasingly blurry versions of the sky corresponding to different levels of roughness. Radiance maps can be expensive to calculate. See [enum ProcessMode] for options.
|
||||
</member>
|
||||
<member name="radiance_size" type="int" setter="set_radiance_size" getter="get_radiance_size" enum="Sky.RadianceSize" default="3">
|
||||
|
|
|
@ -83,7 +83,7 @@ void Sky::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_material"), &Sky::get_material);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "sky_material", PROPERTY_HINT_RESOURCE_TYPE, "ShaderMaterial,PanoramaSkyMaterial,ProceduralSkyMaterial,PhysicalSkyMaterial"), "set_material", "get_material");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Automatic,High Quality (Slow),High Quality Incremental (Average),Real-Time (Fast)"), "set_process_mode", "get_process_mode");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Automatic,HighQuality,HighQualityIncremental,RealTime"), "set_process_mode", "get_process_mode");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "radiance_size", PROPERTY_HINT_ENUM, "32,64,128,256,512,1024,2048"), "set_radiance_size", "get_radiance_size");
|
||||
|
||||
BIND_ENUM_CONSTANT(RADIANCE_SIZE_32);
|
||||
|
|
|
@ -59,7 +59,7 @@ public:
|
|||
|
||||
private:
|
||||
RID sky;
|
||||
ProcessMode mode = PROCESS_MODE_REALTIME;
|
||||
ProcessMode mode = PROCESS_MODE_AUTOMATIC;
|
||||
RadianceSize radiance_size = RADIANCE_SIZE_256;
|
||||
Ref<Material> sky_material;
|
||||
|
||||
|
|
Loading…
Reference in a new issue