Skip to content

Commit ec57cd7

Browse files
authored
Merge pull request #16538 from Mugen87/dev30
Examples: Clean up
2 parents 7bf34a8 + eefe047 commit ec57cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/postprocessing/SAOPass.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ THREE.SAOPass = function ( scene, camera, depthTexture, useNormals, resolution )
147147
this.materialCopy.blendDstAlpha = THREE.ZeroFactor;
148148
this.materialCopy.blendEquationAlpha = THREE.AddEquation;
149149

150-
if ( THREE.CopyShader === undefined ) {
150+
if ( THREE.UnpackDepthRGBAShader === undefined ) {
151151

152152
console.error( 'THREE.SAOPass relies on THREE.UnpackDepthRGBAShader' );
153153

@@ -175,7 +175,7 @@ THREE.SAOPass.OUTPUT = {
175175
THREE.SAOPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ), {
176176
constructor: THREE.SAOPass,
177177

178-
render: function ( renderer, writeBuffer, readBuffer, deltaTime, maskActive ) {
178+
render: function ( renderer, writeBuffer, readBuffer/*, deltaTime, maskActive*/ ) {
179179

180180
// Rendering readBuffer first when rendering to screen
181181
if ( this.renderToScreen ) {

0 commit comments

Comments
 (0)