#ECS Objects have their colors "washed out"
1 messages · Page 1 of 1 (latest)
PLEASE NOTE: the water in the after image has not had its color assigned yet, only the land portions, which have the same color values in r g b and a.
can't say i've seen this, what srp, type of shader
what about lighting in scene (baked?)
post processing?
ok that image you just added is very different
I'm using the Universal RP, the shader is the regular (Universal Render Pipeline / Lit) default shader, and the lighting in the scene is not baked. I've toggled post processing on and off and the effect is the same
Yup! As for the colors, I was porting the logic over one piece at a time, so once I had realized that the "Land" colors were not the same, I stopped before implementing the "Water"
Here, if you'll allow me a moment i will apply the water too so that the grayscale is less distracting
can you render them literally side by side in the same scene?
just 1 in a susbcene, 1 outside it
Currently, I am setting the value of the "URPMaterialBaseColor" component to a float4(from the r g b a values of a color- the same color as the gameObject variant), But I also tried using my own MaterialProperty Component to the same effect
i'd be curious to have a look
oh ok so wait, you're using URPMaterialBaseColor to colour this?
it's just not on the material
Yes, I am using the component, though when I tried creating my own shader with an exposed property and assigning the value through there, the result was exactly the same.
how are you getting the rgb values to apply to the URPMaterialBaseColor component?
I'm a bit embarrased to admit, but this is the first time in a very long time i've reached out through the discord; What would be the best way to upload this?
can you just try math.pow(returnValue, 2.2f)
oh man i sure can
might be opposite actually might need
math.pow(returnValue, 1/2.2f)
i can never remember
yeah you have a gamma vs linear colour space issue
this is the conversion between the spaces
Oh man, I thought I had checked that the color space was set to linear in the player settings
whatever your 'basecolor', is in gamma space
Gamma To Linear
255 * POWER(gammavalue / 255,2.2)
it is
but your basecolor is in gamma space
by doing power 2.2 you are converting it to linear
oh trust me, anyone who has dealt with color has run into this
ideally your raw data would be in linear not gamma but yeah anyway at least you know the problem so can figure it out from here
Absolutely! I'll get right on that 🫡
