summaryrefslogtreecommitdiff
path: root/servers/visual
diff options
context:
space:
mode:
Diffstat (limited to 'servers/visual')
-rw-r--r--servers/visual/rasterizer.cpp2
-rw-r--r--servers/visual/rasterizer.h2
-rw-r--r--servers/visual/shader_language.cpp6
-rw-r--r--servers/visual/visual_server_scene.cpp6
4 files changed, 8 insertions, 8 deletions
diff --git a/servers/visual/rasterizer.cpp b/servers/visual/rasterizer.cpp
index fdcc4f5633..1be65be927 100644
--- a/servers/visual/rasterizer.cpp
+++ b/servers/visual/rasterizer.cpp
@@ -610,7 +610,7 @@ void Rasterizer::_free_fixed_material(const RID& p_material) {
void Rasterizer::flush_frame() {
- //not really necesary to implement
+ //not really necessary to implement
}
Rasterizer::Rasterizer() {
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index 527230895c..838ddead75 100644
--- a/servers/visual/rasterizer.h
+++ b/servers/visual/rasterizer.h
@@ -1489,7 +1489,7 @@ public:
virtual void end_shadow_map()=0;
virtual void end_frame()=0;
- virtual void flush_frame(); //not necesary in most cases
+ virtual void flush_frame(); //not necessary in most cases
/* CANVAS API */
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp
index 3bc495f08e..bc4452d5a8 100644
--- a/servers/visual/shader_language.cpp
+++ b/servers/visual/shader_language.cpp
@@ -2820,7 +2820,7 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons
// this is not invalid and can really appear
// but it becomes invalid anyway because no binary op
// can be followed by an unary op in a valid combination,
- // due to how precedence works, unaries will always dissapear first
+ // due to how precedence works, unaries will always disappear first
_set_error("Parser bug..");
}
@@ -3374,7 +3374,7 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, Map<StringName, DataTy
}
if (!is_token_datatype(tk.type)) {
- _set_error("Expected funtion, uniform or varying ");
+ _set_error("Expected function, uniform or varying ");
return ERR_PARSE_ERROR;
}
@@ -3492,7 +3492,7 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, Map<StringName, DataTy
}
}
- //all good let's parse inside the fucntion!
+ //all good let's parse inside the function!
tk = _get_token();
if (tk.type != TK_CURLY_BRACKET_OPEN) {
_set_error("Expected '{' to begin function");
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp
index 46c7fa6791..9b77ca9e1c 100644
--- a/servers/visual/visual_server_scene.cpp
+++ b/servers/visual/visual_server_scene.cpp
@@ -2447,7 +2447,7 @@ void VisualServerScene::_setup_gi_probe(Instance *p_instance) {
for (int y = 0; y < 4; y++) {
for (int x = 0; x < 4; x++) {
- //substract minimum
+ //subtract minimum
uint32_t a = uint32_t(alpha_block[x][y]) - min_alpha;
//convert range to 3 bits
a = int((a * 7.0 / (max_alpha - min_alpha)) + 0.5);
@@ -2923,7 +2923,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) {
colors[j].z = (local_data[b.sources[j]].energy[2] / float(probe_data->dynamic.bake_dynamic_range)) / 1024.0;
}
//super quick and dirty compression
- //find 2 most futher apart
+ //find 2 most further apart
float distance = 0;
Vector3 from, to;
@@ -3001,7 +3001,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) {
}
}
- //by default, 1 is black, otherwise it will be overriden by source
+ //by default, 1 is black, otherwise it will be overridden by source
uint32_t index_block[16] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };