#Shader not working with HDR 2D enabled

23 messages · Page 1 of 1 (latest)

somber citrus
#

Edit:
The shader works only when HDR 2D is disabled. Is it possible to somehow keep the shader working with HDR 2D enabled? I really want to keep the glow effect.

Hello, I recently found a great shader that converts red and green values of a sprite as UV coordinates to replace them with color from another texture. Few things changed since the 4.2.1 version but I am unable to get it to work.

There is a link to where I found the shader:
https://forum.godotengine.org/t/creating-a-2d-sprite-skin-based-on-a-uv-map/42078

tardy abyss
somber citrus
tardy abyss
#

also are the skin dimensions just the size of the skin-texture? because there is also a function to get the dimensions of a texture inside the shader, called texturesize(). would at least remove one of the variables.

tardy abyss
#

i see. Well then maybe the color format of the texture somehow got changed? for that i would look in the import tab of the texture and see if it uses a different color format.

somber citrus
#

every setting is identical to 4.2.1 settings

#

Now I figured out that it's not the version, it must be some project setting that I changed because it works in a new 4.4.1 project

#

I found it

#

it was the HDR 2D settings that messed everything up

#

only bad thing is that I can't keep the glow effect with this setting on

#

Shader not working with HDR 2D enabled

tardy abyss
#

and i would have thought that the hdr color correction would happen afterwards.

tardy abyss
#

(and then reimporting of course)

#

oh wait no that seems to have a different usage.

#

i must admit that hdr affecting shaders in that way kinda sounds like a bug, so i might suggest reporting it. at the very least someone there should be able to tell you what you have to do different with hdr enabled.

somber citrus
#

I think that it is possible that it changes how colors work, but I'm unable to revert this setting only for one sprite

#

maybe I could draw character on another viewport as a temporary fix

tardy abyss
#

i'm kinda at a loss here, sorry.

somber citrus
#

It's okay, I would not figure this out without you, because I never thought it could be just some setting

#

thank you

tardy abyss
#

i might recommend asking inside #shaders-and-vfx (linking to this entry). maybe you find someone more experienced in that subject.