x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Custom Shader Info/Documentation?

I'm trying to write a custom shader in code. I'm failing at finding proper documentation for how to do so. Does anyone have any info on what members/objects/functions/bananas are available to me in C++? And/or examples?

Thanks for any input.

Product Version: Not Selected
Tags:
more ▼

asked Mar 26 '14 at 02:40 AM in C++ Programming

avatar image

JMoore5268
161 4 7 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

5 answers: sort voted first

Is this updated? I agree that the tutorial of shader development in wiki is too sparse.

Please let me know if there was any update or any better link for beginners for shader development in UE4.

more ▼

answered Nov 10 '14 at 09:46 AM

avatar image

echoform
25 6 10 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

let me bump this for us shader fellows.

more ▼

answered Oct 17 '15 at 10:43 AM

avatar image

rotwang
261 13 23 41

avatar image Dzhyrma Oct 29 '15 at 04:53 PM

More than one year is passed and the documentation is still the same. I would like to know how to write my own vertex factories in order to pass some additional parameters to the pixel shader. Is it that hard for Unreal developers make few pages with examples on how to change or extend their own shaders? It would be a really great step forward for many developers

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Just go here and rejoice and give kudos to this guy who took the time to write a full tutorial on these stuff. I wish this was in the official Wiki, honestly, best tutorial around. https://medium.com/@lordned/unreal-engine-4-rendering-overview-part-1-c47f2da65346

By the way, I'm still wondering which path to add to the plugin shader... release notes say /Plugin/Foo... (what's plugin folder??? means plugins? or the plugin name?) etc. What path do you use for a usf on a plugin?

more ▼

answered Feb 16 '18 at 09:44 AM

avatar image

darkgaze
219 9 15 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
more ▼

answered Mar 26 '14 at 03:25 AM

avatar image

Jeff Wilson ♦♦ STAFF
458 7 5 17

avatar image JMoore5268 Mar 27 '14 at 02:11 AM

I had come across that page. It didn't seem too exhaustive. I was hoping there was a better resource with some more examples or something. Is that the best we have right now?

avatar image kylawl Jun 16 '14 at 05:40 PM

Ya this document is very sparse, It also seems quite out of date.

avatar image HypnoticShark Jun 16 '14 at 05:46 PM

I agree with this, better documentation with examples would be helpful

avatar image Ehamloptiran Jun 17 '14 at 01:41 AM

Since I have written a number of custom shaders using Vertex Factories and also standalone. I can spend some time putting together some documentation on how to do it, if people are interested in this?

avatar image mrg7_ Feb 08 '16 at 12:25 AM

Yes indeed, please!

avatar image nikitablack Jun 18 '14 at 02:15 PM

I'm voting for this! Ehamloptiran, I've read all your posts here and on forum and it seems that you're only one in the community who really in the theme. I even wanted to pm you, but I don't want to be annoying.

avatar image Ehamloptiran Jun 18 '14 at 04:22 PM

I will be putting some documentation together over the weekend on Vertex Factories (including the usf). Global Shaders, Compute Shaders, and Drawing Policies and such. In the mean time nikitablack, PM me if you have any specific questions, I will answer when I can.

avatar image kylawl Jun 19 '14 at 06:55 PM

Thanks Ehamloptiran.

Maybe a wiki entry for just getting a basic vertex factory and a simple FShader hooked going with be amazingly valuable.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I'm stuck too on this same issue. I'm trying to bring in my GLSL Shaders from when we were working on a different engine, so any documentation on this process would be helpful. Is it fine if I PM you as well Ehamloptiran?

more ▼

answered Jun 18 '14 at 04:40 PM

avatar image

srkibria
23 1 5 10

avatar image Ehamloptiran Jun 19 '14 at 01:18 AM

Yes you can PM me. I will answer when I can.

avatar image ash22 Jul 17 '14 at 02:19 PM
  • bump *

I started looking at the process but it's difficult without any context or example. I know C++ and hlsl, but the UE mechanism that links raw shader to materials is quite esoteric. I can't wait until Ehamloptiran writes up a tutorial.

My particular interest is in being able to take an arbitrary HLSL fragment shader and apply it to a mesh as a material (without using 'custom expressions'!).

This is a little helpful: https://docs.unrealengine.com/latest/INT/Programming/Rendering/ShaderDevelopment/index.html

However, without a basic example that gels it all together (to show some simple fancy-coloured material) it is difficult for the uninitiated to contextualise.

avatar image Ehamloptiran Jul 18 '14 at 07:42 AM

I'll put together a simple example tomorrow and upload to my github, I will make sure to comment it well and if someone wants to write a tutorial around it thats fine by me (I am not very good at writing doco).

avatar image kylawl Jul 18 '14 at 04:50 PM

Seems reasonable

avatar image TommyBear Jul 23 '14 at 01:08 AM

Awesome Ehamloptiran... any news on this would love to see something. If you can git it up to your github, I might write a tutorial on the Unreal wiki.

avatar image Ehamloptiran Jul 23 '14 at 01:12 AM

Sorry had some other things to take care of first, will get up some sample code tonight if nothing else comes up, apologies to everyone for the delays

avatar image alsah Aug 19 '16 at 03:29 PM

Did you post some tutorial on this topic? This post is old. I was wondering if it was posted elsewhere.

avatar image echoform Nov 11 '14 at 07:01 AM

was there any update on the corresponding doc?

avatar image ernesernesto Nov 28 '14 at 02:22 AM

any news on the docs? I'm having a hard time on where to start the shader development process if I'm only referring this doc https://docs.unrealengine.com/latest/INT/Programming/Rendering/ShaderDevelopment/index.html

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question