Skip to content

Commit

Permalink
Merge branch 'AcademySoftwareFoundation:main' into bhata/gooch
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinbhat authored Jan 11, 2024
2 parents cae655e + 8489915 commit 6df02c2
Show file tree
Hide file tree
Showing 62 changed files with 612 additions and 1,001 deletions.
16 changes: 16 additions & 0 deletions javascript/MaterialXView/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@
margin: 0;
font-family: Arial
}
/* Property editor item color */
.peditoritem {
background-color: #334444;
}
/* Property editor folder color */
.peditorfolder {
background-color: #333333;
}
.peditor_material_assigned {
background-color: #006cb8;
}
.peditor_material_assigned:hover {
background-color: #32adff;
}
</style>
</head>
<body style="margin: 0px; overflow: hidden;">
Expand Down
5 changes: 5 additions & 0 deletions javascript/MaterialXView/public/shader_ball.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions javascript/MaterialXView/public/shader_ball2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions javascript/MaterialXView/source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ function init()
// Set up renderer
renderer = new THREE.WebGLRenderer({ canvas, context });
renderer.setSize(window.innerWidth, window.innerHeight);
// Disable introspection for shader debugging for deployment.
// - The code associated with getting program information can be very slow when
// dealing with shaders with lots of input uniforms (such as standard surface, openpbr shading models)
// as each call is blocking.
// - Adding this avoids the chess set scene from "hanging" the Chrome browser on Windows to a few second load.
// - Documentation for this flag: https://threejs.org/docs/index.html#api/en/renderers/WebGLRenderer.debug
renderer.debug.checkShaderErrors = false;

composer = new EffectComposer(renderer);
const renderPass = new RenderPass(scene.getScene(), scene.getCamera());
Expand Down
Loading

0 comments on commit 6df02c2

Please sign in to comment.