浏览代码

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


正在加载...
取消
保存