Support for KHR_technique_webgl with glTF 2.0

Hi,

The textures of glTF 2.0 models with “KHR_technique_webgl” extension are not displayed in Cesium.

I was trying to figure out what went wrong with my exported models. But loading the glTF sample model in Cesium leads to the same issue.

Will the extension KHR_technique_webgl be supported, when it isn’t work in progress anymore?

I would use the extension to shade the models with the correct sunlight. Are there other ways to accomplish this? (Without having to supply own shaders)

Tested with Cesium 1.39 with Chrome on Windows.

Thanks,

Benjamin

I think those sample model may be out of date.

“materials”: [

{

“values”: {

“diffuse”: [

0

],

``

This isn’t the proper syntax for textures in glTF 2.0 anymore, but at some point while glTF 2.0 was evolving this the way textures were specified. This has changed to:

“materials”: [

{

“values”: {

“diffuse”: {

index : 0

},

``

The texture should load after making that change. You may want to open an issue in https://github.com/KhronosGroup/glTF-Sample-Models.

"materials": [

   {

       "values": {

           "diffuse": {

               "index" : 0

           },

``

Quick correction: forgot some quotation marks around index.