postProcess TAARenderPass become pale
See original GitHub issueDescribe the bug
I am using “taapass” according to the case of threejs’ official website, but I find it is different from the example. I have the phenomenon of all white here
sampleLevel = 5.0 sampleLevel = 0.0
Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘…’
- See error
Code
this.composer = new EffectComposer(this.renderer);
// const pass = new SMAAPass( this.width * this.renderer.getPixelRatio(), this.height * this.renderer.getPixelRatio() );
// this.composer.addPass( pass );
let renderPass = new RenderPass(this.scene, state.activeCamera);
renderPass.enabled = false;
this.composer.addPass( renderPass );
let copyPass = new ShaderPass( CopyShader );
this.composer.addPass( copyPass );
let taaRenderPass = new TAARenderPass( this.scene, state.activeCamera, 0xffffff,1);
taaRenderPass.unbiased = false;
taaRenderPass.sampleLevel = 5;
this.composer.addPass( taaRenderPass );
this.renderer.setSize( window.innerWidth, window.innerHeight);
this.composer.setSize( window.innerWidth, window.innerHeight );
Live example
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem (drag and drop the image).
Platform:
- Device: Desktop
- OS: Windows
- Browser: Chrome
- Three.js version: “^0.142.0”,
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
How to apply post-processing EffectComposer render passes ...
js I have a red plane in the background and a rotating white cube in the foreground. I'm trying to add a TAARenderPass...
Read more >TAARenderPass: Pass over-brightens scene, shows ... - GitHub
Describe the bug When using TAARenderPass, certain valid settings result in incorrect ... postProcess TAARenderPass become pale #24387.
Read more >How to use post-processing – three.js docs
Post-processing is a widely used approach to implement such effects. First, the scene is rendered to a render target which represents a buffer...
Read more >Post Processing with three.js - Steemit
First let's look at how to use the GlitchPass . This is a cool glitchy effect that makes your scene look like it...
Read more >Post Process Materials - Unreal Engine Documentation
CompositionGraphDebug to get a dump of the full graph. The graph is actually not only doing post processing but also some parts of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have solved the problem by setting the background color of “body” to black thanks !
The problem on my side was coming from html background.
Set your canvas background color to black in CSS.
You can keep the color of your scene white if you want.
This bugs occurs on my side since the buffer use alpha for SSAA and TAA (RGBFormat --> RGBAFormat).
#24239