-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,11 +261,12 @@ Object.assign( THREE.Pass.prototype, { | |
THREE.Pass.FullScreenQuad = ( function () { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mrdoob
Author
Owner
|
||
|
||
var camera = new THREE.OrthographicCamera( - 1, 1, 1, - 1, 0, 1 ); | ||
|
||
// https://github.com/mrdoob/three.js/pull/21358 | ||
|
||
var geometry = new THREE.BufferGeometry(); | ||
const vertices = new Float32Array([-1, 3, 0, -1, -1, 0, 3, -1, 0]); | ||
geometry.setAttribute("position", new THREE.BufferAttribute(vertices, 3)); | ||
const uv = new Float32Array([0, 2, 0, 0, 2, 0]); | ||
geometry.setAttribute("uv", new THREE.BufferAttribute(uv, 2)); | ||
geometry.setAttribute( 'position', new THREE.Float32BufferAttribute( [ - 1, 3, 0, - 1, - 1, 0, 3, - 1, 0 ], 3 ) ); | ||
geometry.setAttribute( 'uv', new THREE.Float32BufferAttribute( [ 0, 2, 0, 0, 2, 0 ], 2 ) ); | ||
|
||
var FullScreenQuad = function ( material ) { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do you think we should rename
FullScreenQuad
toFullScreenTriangle
?