# Using shader material as texture

**URL:** <https://discourse.threejs.org/t/using-shader-material-as-texture/30042>\
**Category:** Questions\
**Tags:** rtt\
**Created:** [September 18, 2021, 4:56pm UTC](https://discourse.threejs.org/t/using-shader-material-as-texture/30042 "2021-09-18T16:56:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nayan](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@Nayan](https://discourse.threejs.org/u/Nayan)\
**Post date:** [September 18, 2021, 4:56pm UTC](https://discourse.threejs.org/t/using-shader-material-as-texture/30042/1 "2021-09-18T16:56:50Z")

</div>

Hey everyone, this is my first Time in this forum and also a beginner in using three js……recently I wanted to dynamically convert height map into normal map, I did some research came across normalmapshader.js In examples of three.js……I even created a normal map through shader material, but how do I use shader material as normal map in meshstandardmaterial…….can someone help me in that……thank you

---

<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:** [September 19, 2021, 12:07pm UTC](https://discourse.threejs.org/t/using-shader-material-as-texture/30042/2 "2021-09-19T12:07:33Z")

</div>

> [@Nayan](#):
>
> I even created a normal map through shader material, but how do I use shader material as normal map in meshstandardmaterial

You can’t use material as textures. However, you can use the material with a plane mesh and then render into a render target. Such a render target can be used as a texture. I suggest you study the following example for more details: [three.js webgl - render-to-texture](https://threejs.org/examples/webgl_rtt)
