Skip to content

Support backgrounds (cube, texture, color) via passes#9158

Merged
mrdoob merged 7 commits into
mrdoob:devfrom
bhouston:cubeTexturePass
Jun 17, 2016
Merged

Support backgrounds (cube, texture, color) via passes#9158
mrdoob merged 7 commits into
mrdoob:devfrom
bhouston:cubeTexturePass

Conversation

@bhouston
Copy link
Copy Markdown
Contributor

This implements the idea of various easy to use backgrounds (cube, texture, color) via the use of passes. I cleaned up RenderPass, TexturePass. I added CubeTexturePass.

I show how they can be combined in a flexible manner via this example:

/examples/webgl_postprocessing_backgrounds.html

image

<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - postprocessing manual msaa</title>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

webgl - postprocessing backgrounds

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@WestLangley
Copy link
Copy Markdown
Collaborator

@bhouston
Copy link
Copy Markdown
Contributor Author

I've further expanded on the features in this PR here: #9163 Adding support for blurring the cube maps, tone mapping, HDR environements (e.g. texture encodings), and support for CubeUV packing.


THREE.Pass.call( this );

this.scene = scene;
Copy link
Copy Markdown
Owner

@mrdoob mrdoob Jun 17, 2016

Choose a reason for hiding this comment

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

What's this.scene for? I don't think it's being used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It isn't being used, I was just following the convention of many Passes that take "scene, camera" as their first two parameters and remember they them. I'll remove it.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I see, I see. It would be nice to add a comment, otherwise someone will try to clean it up in the future.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I guess that works too 😁

@mrdoob mrdoob merged commit 309723c into mrdoob:dev Jun 17, 2016
@mrdoob
Copy link
Copy Markdown
Owner

mrdoob commented Jun 17, 2016

Thanks!

@vanruesc vanruesc mentioned this pull request Jun 27, 2016
10 tasks
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.

3 participants