# Controlling Reflection Intensity

**URL:** <https://discourse.threejs.org/t/controlling-reflection-intensity/17394>\
**Category:** Questions\
**Tags:** mirror, reflector\
**Created:** [July 25, 2020, 3:04pm UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394 "2020-07-25T15:04:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sapir](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Sapir](https://discourse.threejs.org/u/Sapir)\
**Post date:** [July 25, 2020, 3:04pm UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/1 "2020-07-25T15:04:55Z")

</div>

Hi, I’m trying to achieve a result similar to:

 ![Screen Shot 2020-07-25 at 18.00.41](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/f/fce7f8b443d6dd2198d92e12f3ad66f2cdb7c217.jpeg)  
where the blue and black objects are reflective.

I saw this example: [three.js examples](https://threejs.org/examples/?q=mirror#webgl_mirror) that uses [THREE.Reflector](https://github.com/mrdoob/three.js/blob/76b09ece12704195ebe930b07cb7c30a2f30eaaa/examples/jsm/objects/Reflector.js) but couldn’t find how to control the reflection intensity (so it won’t be like a mirror) or the reflective object color.

How would you go about this?

Thanks!

---

<div class="post-metadata">

**Author:** ![nikolas.karinja](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/nikolas.karinja/32/23633_2.png) [@nikolas.karinja](https://discourse.threejs.org/u/nikolas.karinja)\
**Post date:** [June 20, 2022, 1:10am UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/3 "2022-06-20T01:10:41Z")

</div>

Link doesn’t work anymore. I have the same question as above.

---

<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:** [June 20, 2022, 8:15am UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/4 "2022-06-20T08:15:18Z")

</div>

The `THREE.Reflector` class has a `color` option. Can you solve your issue by changing the default value (`0x7F7F7F`) to a different one?

---

<div class="post-metadata">

**Author:** ![nikolas.karinja](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/nikolas.karinja/32/23633_2.png) [@nikolas.karinja](https://discourse.threejs.org/u/nikolas.karinja)\
**Post date:** [June 20, 2022, 8:37am UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/5 "2022-06-20T08:37:12Z")

</div>

As you can see below, changing the color doesn’t decrease the intensity of the reflection. I’m wondering if their is a way in the fragment-shader code of the `THREE.Reflector` to do so. Is their any performant work around I can do?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/0/60f443f73cd2bdadb8374d4474b2a7c31c31e645.jpeg)

---

<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:** [June 20, 2022, 10:24am UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/6 "2022-06-20T10:24:26Z")

</div>

Are you looking for a fading effect like discussed in [Creating a fading reflection](https://discourse.threejs.org/t/creating-a-fading-reflection/3831) or a constant attenuation over the entire reflector?

I’m asking since there is already a solution for the first one.

---

<div class="post-metadata">

**Author:** ![nikolas.karinja](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/nikolas.karinja/32/23633_2.png) [@nikolas.karinja](https://discourse.threejs.org/u/nikolas.karinja)\
**Post date:** [June 20, 2022, 3:55pm UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/7 "2022-06-20T15:55:56Z")

</div>

A constant attenuation over the entire reflector. I have looked at the [fading example](https://discourse.threejs.org/t/creating-a-fading-reflection/3831) and its not the desired effect. I’d like as if I can change the intensity of the reflection over the entire reflector. Like make the intensity of the reflection range from 0 to 1.

---

<div class="post-metadata">

**Author:** ![murgrabia\_bec](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/murgrabia_bec/32/14645_2.png) [@murgrabia\_bec](https://discourse.threejs.org/u/murgrabia_bec)\
**Post date:** [January 24, 2023, 9:30am UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/8 "2023-01-24T09:30:37Z")

</div>

Just do this. On top of the reflector ( just a little bit of transformation in the y axis ) create a plane that would match the size of the reflector object, and give it a material like this one :

```javascript
var planeMat = new THREE.MeshLambertMaterial({
    color: 0x00008b, // dark blue
    transparent: true,
    opacity: 0.5,
    reflectivity: 0
}); 

```

… and there you go. It is not something I would call perfect, but in my case did the job.

---

<div class="post-metadata">

**Author:** ![drcmda](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@drcmda](https://discourse.threejs.org/u/drcmda)\
**Post date:** [January 24, 2023, 11:30am UTC](https://discourse.threejs.org/t/controlling-reflection-intensity/17394/9 "2023-01-24T11:30:06Z")

</div>

the blur reflector in that post has that property, it is called “mixStrength”. put “mixBlur” to 0 and you have it.
