summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/classes/CubeMap.xml8
-rw-r--r--modules/mono/csharp_script.cpp2
-rw-r--r--scene/resources/material.cpp2
3 files changed, 10 insertions, 2 deletions
diff --git a/doc/classes/CubeMap.xml b/doc/classes/CubeMap.xml
index 5626554193..b173bba3c6 100644
--- a/doc/classes/CubeMap.xml
+++ b/doc/classes/CubeMap.xml
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="CubeMap" inherits="Resource" category="Core" version="3.0.alpha.custom_build">
<brief_description>
+ A CubeMap is a 6 sided 3D texture.
</brief_description>
<description>
+ A CubeMap is a 6 sided 3D texture typically used for faking reflections. It can be used to make an object look as if it's reflecting its surroundings. This usually delivers much better performance than other reflection methods.
</description>
<tutorials>
</tutorials>
@@ -19,6 +21,7 @@
<return type="int">
</return>
<description>
+ Returns the CubeMap's height.
</description>
</method>
<method name="get_lossy_storage_quality" qualifiers="const">
@@ -33,6 +36,7 @@
<argument index="0" name="side" type="int" enum="CubeMap.Side">
</argument>
<description>
+ Returns an [Image] for a side of the CubeMap using one of the [code]SIDE_*[/code] constants or an integer 0-5.
</description>
</method>
<method name="get_storage" qualifiers="const">
@@ -45,6 +49,7 @@
<return type="int">
</return>
<description>
+ Returns the CubeMap's width.
</description>
</method>
<method name="set_flags">
@@ -71,6 +76,7 @@
<argument index="1" name="image" type="Image">
</argument>
<description>
+ Sets an [Image] for a side of the CubeMap using one of the [code]SIDE_*[/code] constants or an integer 0-5.
</description>
</method>
<method name="set_storage">
@@ -84,8 +90,10 @@
</methods>
<members>
<member name="lossy_storage_quality" type="float" setter="set_lossy_storage_quality" getter="get_lossy_storage_quality">
+ The lossy storage quality of the CubeMap if the storage mode is set to STORAGE_COMPRESS_LOSSY.
</member>
<member name="storage_mode" type="int" setter="set_storage" getter="get_storage" enum="CubeMap.Storage">
+ The CubeMap's storage mode. See [code]STORAGE_*[/code] constants.
</member>
</members>
<constants>
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index f066fb2ed9..8d4e19469a 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -284,7 +284,7 @@ Ref<Script> CSharpLanguage::get_template(const String &p_class_name, const Strin
"// // Update game logic here.\n"
"// \n"
"// }\n"
- "//}\n";
+ "}\n";
script_template = script_template.replace("%BASE_CLASS_NAME%", p_base_class_name)
.replace("%CLASS_NAME%", p_class_name);
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index 898a594498..12434b39fa 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -1278,7 +1278,7 @@ void SpatialMaterial::_validate_property(PropertyInfo &property) const {
property.usage = 0;
}
- if (property.name == "proximity_fade_distacne" && !proximity_fade_enabled) {
+ if (property.name == "proximity_fade_distance" && !proximity_fade_enabled) {
property.usage = 0;
}