Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cameras: Convert to es6 class. #19989

Closed
wants to merge 2 commits into from
Closed

Conversation

linbingquan
Copy link
Contributor

No description provided.

@linbingquan linbingquan changed the title src: Convert to es6 class. Cameras: Convert to es6 class. Aug 2, 2020
@Mugen87
Copy link
Collaborator

Mugen87 commented Aug 2, 2020

I'm afraid this PR breaks CinematicCamera.

@linbingquan
Copy link
Contributor Author

This PR breaks CinematicCamera.

Yes, thank you to review, I try to solve it.

@DefinitelyMaybe DefinitelyMaybe mentioned this pull request Aug 3, 2020
43 tasks
@@ -13,205 +13,205 @@ import {
import { BokehShader } from "../shaders/BokehShader2.js";
import { BokehDepthShader } from "../shaders/BokehShader2.js";

var CinematicCamera = function ( fov, aspect, near, far ) {
class CinematicCamera extends PerspectiveCamera {
Copy link
Collaborator

@Mugen87 Mugen87 Aug 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is not mergeable as long as you have to modify example code.

Notice that it is not acceptable to just modify jsm modules. Until end of this year, example/js and exampes/jsm have to stay in sync (expect for new files).

Please revert any changes to CinematicCamera, PerspectiveCamera and Camera.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this #20102

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing in favor of #20102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants