Added latest from Cornerstone WebGL branch
This commit is contained in:
1 parent
afeb0d82fb
commit
624d2aeaf5
2 files changed
+62
-69
No files matched your search
+5
-1
@@ -130,10 +130,14 @@ function loadSeriesIntoViewport(data, templateData) {
|
||||
|
||||
// Enable Cornerstone for the viewport element
|
||||
//
|
||||
var options = {
|
||||
renderer: 'webgl'
|
||||
};
|
||||
|
||||
// NOTE: This uses the experimental WebGL renderer for Cornerstone!
|
||||
// If you have problems, replace it with this line instead:
|
||||
// cornerstone.enable(element);
|
||||
cornerstone.enable(element, cornerstone.webGL.renderer.render);
|
||||
cornerstone.enable(element, options);
|
||||
|
||||
// Get the handler functions that will run when loading has finished or thrown
|
||||
// an error. These are used to show/hide loading / error text boxes on each viewport.
|
||||
|
||||
Reference in new issue
Block a user