In photoshop hard light blend treats neutral grey (128.128.128) as a tone that does not affect the layer under it.
But in ue4 the same neutral grey color value makes everything darker when blended through hard light blend.
I want to add some details to my material, but can't figure out how to blend it so that I have a color value that would be treated as "transparent" during the blend? Lerp, where alpha for blending can be specified, does not give me the desired result.
Edit: I sampled the color from the texture's channel I'm trying to use for hard light blend in ue4, and the grey value is much darker than in photoshop (93.93.93).
Must be something with working color profiles in photoshop, I guess? I'm not sure how it gets darger after exporting.
Replies
I'm not sure how to fix this.
It just makes the end result pale-grey.
I had this stupid idea to reduce the number of textures used on the scene by blending details on top of a high-resolution texture that is used for multiple objects and surfaces. That way I could have variations without the need to make a unique texture set for each object.
So I made this in my shader:
It gets the job done.
Here's a detail with no blend:
And this is blend enabled:
End result:
However, using Lerps is less than ideal, because that way I have to do lighter details and darker details as separate channels. I.e. edge highlights are in channel G, and occlusion around bolts and such is in channel B.
In theory if I could use hard light blend with neutral grey as a "transparency", then I could combine both channels into one, save some texture memory and have more control over details that got blended into main texture.
But unfortunately, as I've mentioned earlier in this thread, colors per channel in ue4 do not match the same channels in photoshop. So I couldn't make the hard light blend work correctly in the shader.
If I make a texture in greyscale with grey gamma 2.2 color profile, and 126.126.126 grey background as neutral, and then put that into a channel and import to ue4, then hard light blend works correctly.
Unfortunately though, because of the "Masks" compression settings on the texture the hard light blend does sub-par job in preserving details.
So I guess I'll just stick with my lerps.