# Output of vertex shader not read by fragment shader

**URL:** <https://discourse.threejs.org/t/output-of-vertex-shader-not-read-by-fragment-shader/39896>\
**Category:** Questions\
**Tags:** shaders\
**Created:** [July 2, 2022, 7:53am UTC](https://discourse.threejs.org/t/output-of-vertex-shader-not-read-by-fragment-shader/39896 "2022-07-02T07:53:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tfoller](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@tfoller](https://discourse.threejs.org/u/tfoller)\
**Post date:** [July 2, 2022, 10:40am UTC](https://discourse.threejs.org/t/output-of-vertex-shader-not-read-by-fragment-shader/39896/5 "2022-07-02T10:40:32Z")

</div>

Should be

```javascript
camera.position.set(eye.x, eye.y, eye.z);

```

This works on the latest version I believe:

> **[Earth Atmosphere Scattering Threejs r105 - JSFiddle - Code Playground](https://jsfiddle.net/tfoller/d1o3pmvb/8/)**
>
> Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.

---

_[View the full topic](https://discourse.threejs.org/t/output-of-vertex-shader-not-read-by-fragment-shader/39896)._
