#thanks, Ill check both out!

1 messages · Page 1 of 1 (latest)

grizzled anchor
#

Probably a dumb question but it says it works in 2022LTS im using Unity 6 LTS im assuming the open source one wont work?

nocturne phoenix
#

i am not sure.., but thinking back to its code, i think it will.

#

i actually modified it to only do the outline effect, and to control the size and intensity. i really should post it somewhere

grizzled anchor
#

i tried in 2022 and unity 6, attach the hlsl file but after that in u6 i get a weird error regarding var before assignment and in 2022 the object is just invisible

nocturne phoenix
#

perhaps show the error

grizzled anchor
#

all I did was copy the 3 files

#

and i have 0 hlsl knowledge to even debug this 😂

nocturne phoenix
#

Ok, so it said that in both 2022 and 6?

grizzled anchor
#

in 2022 the material was just completely invisible

#

but Im not using 2022 for my proj so i dont really care bout that

nocturne phoenix
#

one sec, let me go look at the code to refresh my memory

grizzled anchor
#

i appreciate it

nocturne phoenix
#

Ok, so this is meant to be used as a full-screen post process effect, not as a material per item. are you setting it up as such (post process)?

grizzled anchor
#

Im trying to outline meshes when the player interacts with them so I kinda need the former

nocturne phoenix
#

i never tried it as a material per item, so i honestly have no idea how that would work, but it seems it should be a similar setup in the Shader Graph, to the way you have it.
Oh, i see.. hmm. there may be better assets for that., but to be honest, i hack my way through most things, so i am not a 'oh, i'll look at it and know' when it come to shaders. If you are looking specifically to outline on interact, a simpler shader may work. let me see if i can find a free one. so, you already programmed the Logic to interact?

grizzled anchor
#

my experience when it comes to shaders is a big 0 so thats why i just blindly follow tutorials

#

the whole bottom is useless for what im doing (its just to make it scale with the camera)

nocturne phoenix
#

i think your best bet would be to ask the #archived-shaders guys, as they should know. I only got it working as a post process, and i am not even sure where that test project went :/ if you Do end up getting it working for you, i can send you the code i made to extend your control over it though