Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan Mobile: BaseMaterial3D Rim effect creates a dark dot on the mesh while moving the camera #69908

Closed
Tracked by #55871
JeanKouss opened this issue Dec 11, 2022 · 1 comment · Fixed by #69985
Closed
Tracked by #55871

Comments

@JeanKouss
Copy link

JeanKouss commented Dec 11, 2022

Godot version

v4.0.beta8.official [45cac42]

System information

Windows10

Issue description

First, The issue concerns only mobile rendering mode.

When a mesh have a 3DStandardMaterial that applies a rim effect on it, a dark circle appear on the surface of the mesh when the camera is moving.

The circle seems appearing on the mesh at the intersection of the word boundary and one of the word axis.

image_1

Steps to reproduce

  1. Create a scene
  2. Add a MeshInstance3D and choose a mesh shape
  3. Add a 3DStandardMaterial to the mesh and add a rim effect
  4. Move the camera move around the object

Minimal reproduction project

N/A

@clayjohn
Copy link
Member

Looks like an NaN in the specular contribution. If I remember correctly rim lighting is added to the specular so that makes sense. What is odd though is that the same code runs in the mobile and forward_plus renderers so you should be seeing the issue in both.

@Calinou Calinou changed the title Rim effect creates a dark dot on the mesh while moving the camera (Rendering Method : Mobile) Vulkan Mobile: BaseMaterial3D Rim effect creates a dark dot on the mesh while moving the camera Dec 12, 2022
@clayjohn clayjohn added this to the 4.0 milestone Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants