# Enhanced Reflector: problems using fading reflection

**URL:** <https://discourse.threejs.org/t/enhanced-reflector-problems-using-fading-reflection/34292>\
**Category:** Questions\
**Tags:** materials\
**Created:** [January 30, 2022, 10:54am UTC](https://discourse.threejs.org/t/enhanced-reflector-problems-using-fading-reflection/34292 "2022-01-30T10:54:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trisant](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@trisant](https://discourse.threejs.org/u/trisant)\
**Post date:** [January 30, 2022, 10:54am UTC](https://discourse.threejs.org/t/enhanced-reflector-problems-using-fading-reflection/34292/1 "2022-01-30T10:54:35Z")

</div>

I’m having trouble implementing the enhanced THREE.Reflector (allowing for fading reflection) . I have the standard Reflector working, but when I tried to integrate the enhanced Reflector, [JSFiddle - Code Playground](https://jsfiddle.net/3fb6ousc/6/) it wouldn’t run without including: import { Reflector } from ‘three/examples/jsm/objects/Reflector’  
Also I had to amend:  
‘const groundMirror = new THREE.Reflector(’  
to:  
‘const groundMirror = new Reflector(’  
to avoid errors.  
With this it simply uses the standard Reflector & ignores the custom Reflector. Any changes I made to the Shader were ignored.  
If I do get it to run, do you know where to specify the stat & end of the reflection fade?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 1, 2022, 9:44am UTC](https://discourse.threejs.org/t/enhanced-reflector-problems-using-fading-reflection/34292/2 "2022-02-01T09:44:31Z")

</div>

The modified version of `Reflector` does not work with the latest code base since it has to be a ES6 class. I’ve updated the code so it works with `r137`. Maybe you have more luck with this version: [Edit fiddle - JSFiddle - Code Playground](https://jsfiddle.net/m3tyrLxb/2/)
