Browse Source

Remove renderer pre-execution hook.

It was added in 950942830fb531bf8faee19f85dea5cc94a23de1, but needs more work.
pull/1121/head
Matthew Petroff 2 years ago
parent
commit
fa11a998a4
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      src/js/libpannellum.js

+ 0
- 5
src/js/libpannellum.js View File

@@ -749,7 +749,6 @@ function Renderer(container, context) {
* @param {Object} [params] - Extra configuration parameters.
* @param {number} [params.roll] - Camera roll (in radians).
* @param {string} [params.returnImage] - Return rendered image? If specified, should be 'ImageBitmap', 'image/jpeg', or 'image/png'.
* @param {function} [params.hook] - Hook for executing arbitrary function in this environment.
*/
this.render = function(pitch, yaw, hfov, params) {
var focal, i, s, roll = 0;
@@ -792,10 +791,6 @@ function Renderer(container, context) {
roll += roll_adj;
}

// Execute function hook
if (params.hook)
params.hook(this);

// If no WebGL
if (!gl && (imageType == 'multires' || imageType == 'cubemap')) {
// Determine face transforms


Loading…
Cancel
Save