Update Scene

This request updates the scene settings for rendering.

Endpoints

  • GET /configsessions/{sessionID}/renderers/{rendererID}/scene

Url

sessionID

The ID of the configuration session

rendererID

The ID of the renderer in the session

Header

Authorization

Bearer {token}

X-API-KEY

{API key}

Body

JSON

Scene settings in JSON format

Response

Scene settings in JSON format

Example request


 GET https://api.paramate.trinckle.com/configSessions/b1cf7173-f02d-44cd-b65d-bdd2fd38297b/renderers/4d205183-76f2-4683-b024-5dd9a8aaa671/scene
 -H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
 -H X-API-KEY: 5b260091e8a03ab9af7716af0d71474a
 -H Content-Type: application/json
 {
   "materials":
   {
     "0":
     {
       "vertexShader": "shaders/matcap_normal_col.vs.glsl",
       "fragmentShader": "shaders/matcap_normal_col.fs.glsl",
       "uniforms":
       {
         "matcap":
         {
           "type": "sampler2d",
           "value":
           {
             "url": "matcap_images/matcap_base.png",
             "external": false
           }
         }
       }
     }
   }
 }

 

Output


 HTTP/1.1 200 OK
 {
   "materials":
   {
     "0":
     {
       "vertexShader": "shaders/matcap_normal_col.vs.glsl",
       "fragmentShader": "shaders/matcap_normal_col.fs.glsl",
       "uniforms":
       {
         "matcap":
         {
           "type": "sampler2d",
           "value":
           {
             "url": "matcap_images/matcap_base.png",
             "external": false
           }
         }
       }
     }
   }
 }