Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Mar 2, 2024
1 parent d263324 commit bebb63f
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/core/EffectComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class EffectComposer {
const alpha = renderer.getContext().getContextAttributes().alpha;
const frameBufferType = this.inputBuffer.texture.type;

if(frameBufferType === UnsignedByteType && renderer.colorSpace === SRGBColorSpace) {
if(frameBufferType === UnsignedByteType && renderer.outputColorSpace === SRGBColorSpace) {

this.inputBuffer.texture.colorSpace = SRGBColorSpace;
this.outputBuffer.texture.colorSpace = SRGBColorSpace;
Expand Down Expand Up @@ -365,7 +365,7 @@ export class EffectComposer {

}

if(type === UnsignedByteType && renderer.colorSpace === SRGBColorSpace) {
if(type === UnsignedByteType && renderer.outputColorSpace === SRGBColorSpace) {

renderTarget.texture.colorSpace = SRGBColorSpace;

Expand Down
2 changes: 1 addition & 1 deletion src/effects/BloomEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class BloomEffect extends Effect {

this.renderTarget.texture.type = frameBufferType;

if(renderer.colorSpace === SRGBColorSpace) {
if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTarget.texture.colorSpace = SRGBColorSpace;

Expand Down
2 changes: 1 addition & 1 deletion src/effects/DepthOfFieldEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export class DepthOfFieldEffect extends Effect {
this.renderTargetFar.texture.type = frameBufferType;
this.renderTargetMasked.texture.type = frameBufferType;

if(renderer.colorSpace === SRGBColorSpace) {
if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTarget.texture.colorSpace = SRGBColorSpace;
this.renderTargetNear.texture.colorSpace = SRGBColorSpace;
Expand Down
2 changes: 1 addition & 1 deletion src/effects/GodRaysEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ export class GodRaysEffect extends Effect {
this.renderTargetB.texture.type = frameBufferType;
this.renderTargetLight.texture.type = frameBufferType;

if(renderer.colorSpace === SRGBColorSpace) {
if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTargetA.texture.colorSpace = SRGBColorSpace;
this.renderTargetB.texture.colorSpace = SRGBColorSpace;
Expand Down
2 changes: 1 addition & 1 deletion src/effects/SelectiveBloomEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class SelectiveBloomEffect extends BloomEffect {

this.renderTargetMasked.texture.type = frameBufferType;

if(renderer.colorSpace === SRGBColorSpace) {
if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTargetMasked.texture.colorSpace = SRGBColorSpace;

Expand Down
2 changes: 1 addition & 1 deletion src/effects/TiltShiftEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class TiltShiftEffect extends Effect {

this.renderTarget.texture.type = frameBufferType;

if(renderer.colorSpace === SRGBColorSpace) {
if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTarget.texture.colorSpace = SRGBColorSpace;

Expand Down
2 changes: 1 addition & 1 deletion src/passes/BoxBlurPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class BoxBlurPass extends Pass {

this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";

} else if(renderer.colorSpace === SRGBColorSpace) {
} else if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTargetA.texture.colorSpace = SRGBColorSpace;
this.renderTargetB.texture.colorSpace = SRGBColorSpace;
Expand Down
2 changes: 1 addition & 1 deletion src/passes/CopyPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class CopyPass extends Pass {

this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";

} else if(renderer.colorSpace === SRGBColorSpace) {
} else if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTarget.texture.colorSpace = SRGBColorSpace;

Expand Down
2 changes: 1 addition & 1 deletion src/passes/GaussianBlurPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class GaussianBlurPass extends Pass {
this.blurMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";
this.copyMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";

} else if(renderer.colorSpace === SRGBColorSpace) {
} else if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTargetA.texture.colorSpace = SRGBColorSpace;
this.renderTargetB.texture.colorSpace = SRGBColorSpace;
Expand Down
2 changes: 1 addition & 1 deletion src/passes/KawaseBlurPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class KawaseBlurPass extends Pass {
this.blurMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";
this.copyMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";

} else if(renderer.colorSpace === SRGBColorSpace) {
} else if(renderer.outputColorSpace === SRGBColorSpace) {

this.renderTargetA.texture.colorSpace = SRGBColorSpace;
this.renderTargetB.texture.colorSpace = SRGBColorSpace;
Expand Down
2 changes: 1 addition & 1 deletion src/passes/MipmapBlurPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class MipmapBlurPass extends Pass {
this.downsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";
this.upsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";

} else if(renderer.colorSpace === SRGBColorSpace) {
} else if(renderer.outputColorSpace === SRGBColorSpace) {

for(const mipmap of mipmaps) {

Expand Down

0 comments on commit bebb63f

Please sign in to comment.