瀏覽代碼

Remove renderer pre-execution hook.

It was added in 950942830fb531bf8faee19f85dea5cc94a23de1, but needs more work.
pull/1121/head
Matthew Petroff 2 年之前
父節點
當前提交
fa11a998a4
共有 1 個檔案被更改,包括 0 行新增5 行删除
  1. +0
    -5
      src/js/libpannellum.js

+ 0
- 5
src/js/libpannellum.js 查看文件

@@ -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…
取消
儲存