gwaldron / osgearth

A 3D Mapping Engine & SDK for OpenSceneGraph.
https://www.pelicanmapping.com/home-1/opensource
Other
1.46k stars 773 forks source link

3dTiles model have no texture #1478

Closed GraCoder closed 4 years ago

GraCoder commented 4 years ago

GLTFReader.h:376 i think the geometry should use setTextureAttributeAndModes,if else ShaderGenerator's state capture nothing.

jasonbeverage commented 4 years ago

Do you have a sample model that is showing the issue that we could test with?

jasonbeverage commented 4 years ago

Actually I remembered seeing this issue in non GL3/GLcore builds awhile ago and you're correct, we should be calling setTextureAttributeAndModes. I've pushed a fix in b40c7193e34f2cb77b16321f203a1420371c0bd7.