# How to use shaders in the editor?

**URL:** <https://forums.unrealengine.com/t/how-to-use-shaders-in-the-editor/417484>\
**Category:** Rendering\
**Tags:** unreal-engine, global, editor, Shaders, question, CPP\
**Created:** [February 16, 2018, 12:31pm UTC](https://forums.unrealengine.com/t/how-to-use-shaders-in-the-editor/417484 "2018-02-16T12:31:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkgaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkgaze](https://forums.unrealengine.com/u/darkgaze)\
**Post date:** [February 16, 2018, 12:31pm UTC](https://forums.unrealengine.com/t/how-to-use-shaders-in-the-editor/417484/1 "2018-02-16T12:31:45Z")

</div>

If I declare a global shader in my code using the tutorials available, it works, compiles, and UE4 opens perfectly…seems like it should be somewhere, but WHERE?.. I’ve only seen one example where I should create a c++ function that sends data to the gpu, etc.

How do artists use global shaders in the editor? is it in the material editor? Where are the shaders? . I’ve seen people using Custom nodes to add HLSL code, but what if I’ve declared a usf file and loaded it using a class and Macros?  
Is it necessary to write a function to send the data and use the shader in the gpu?.

Where is my shader located? Can I see the list of shaders declared and loaded?

Thanks
