godotengine / godotengine/godot-docs

Document that SurfaceTool meshes must have normals to interact with lights.

Open
#4,795 2 comments 0 reactions 0 assignees View on GitHub
area:class reference enhancement
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**

3.2.3

**Issue description:**

Meshes generated with surface tool do not interact with lights unless normals are added with [`add_normal`](https://docs.godotengine.org/en/latest/classes/class_surfacetool.html#class-surfacetool-method-add-normal) or [`generate_normals`](https://docs.godotengine.org/en/latest/classes/class_surfacetool.html#class-surfacetool-method-generate-normals) is called.

Without normals:
![image](https://user-images.githubusercontent.com/14253836/113066851-dcbac080-9180-11eb-9bca-c8ae20384913.png)

With normals:
![image](https://user-images.githubusercontent.com/14253836/113066879-ec3a0980-9180-11eb-9021-08ce475a9246.png)

**URL to the documentation page (if already existing):**

https://docs.godotengine.org/en/latest/classes/class_surfacetool.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.