question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix model shader generation when normals are missing

See original GitHub issue

processPbrMetallicRoughness always expects normals to exist, but that is not always the case. We should have a separate shader path for those models that would look similar to the constant lighting in processModelMaterialsCommon.

This will fix https://github.com/AnalyticalGraphicsInc/cesium/issues/5835.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
tkazikcommented, Apr 10, 2018
0reactions
cesium-conciergecommented, Apr 30, 2018

Congratulations on closing the issue! I found these Cesium forum links in the comments above:

https://groups.google.com/forum/#!topic/cesium-dev/eXxk3Oi0hEM https://groups.google.com/forum/#!topic/cesium-dev/se_9ov5HwA8 https://groups.google.com/forum/#!topic/cesium-dev/YSNaoirGXMw

If this issue affects any of these threads, please post a comment like the following:

The issue at https://github.com/AnalyticalGraphicsInc/cesium/issues/5838 has just been closed and may resolve your issue. Look for the change in the next stable release of Cesium or get it now in the master branch on GitHub https://github.com/AnalyticalGraphicsInc/cesium.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix model shader generation when normals are missing #5838
I tried the --materialCommon hint from the linked forum topic, but that appears to be the worst of both worlds (missing textures in...
Read more >
GLSL shader generation of normals - Stack Overflow
I need to draw very fast flat shaded models. I generate normals on CPU every single frame. This is very slow. I tried...
Read more >
Calculating Normals in the Shader - YouTube
This week we have a look at how we can recalculate our Normals in our Shader, for when we're using WPO or Displacement...
Read more >
Bad Shading on Imported Mesh - Blender Stack Exchange
This is generally caused by custom normal data. Under the Properties Window > Object Data > Geometry Data press Clear Custom Split Normals...
Read more >
Missing Vertex Attributes - GDN {GIANTS Developer Network}
The Editor tells me, when I want to assign Shader Parameter "Decals" or "staticLight" that my shape is'nt provied to do this.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found