#How can i extract a shader from unity?

1 messages · Page 1 of 1 (latest)

thorn wolf
#

Do i have to do something to the shader before it works?

dusky tundra
#

what the heck are you talking about

thorn wolf
#

THe left one is a shader in an asset bundle, the one on the right is when i extracted it then put it on the material to the sphere on the right

dusky tundra
#

Show the inspector

thorn wolf
#

kk

#

im going to rename some stuff so it doesnt confuse you guys

spring trout
#

If you're talking about AssetStudio, it clearly says it's not a working shader. You have to manually edit it.

thorn wolf
#

Non Working white sphere:

#

Working (asset bundle) shader sphere:

spring trout
#

Check if the shader has any error

thorn wolf
#

it doesnt

spring trout
#

Also, wdym by "extracted"

thorn wolf
#

i also found the actual shader itself, without being in an assetbundle, but when i use that its still the same white sphere

thorn wolf
spring trout
#

And why are you extracting from an AssetBundle anyway.

#

The shader in AssetBundle is compiled. So it won't work without manually editing it, as mentioned.

spring trout
#

Since you have both (the working one, and the not-extracted one) already, just open them and check if they're different

thorn wolf
#

wait a sec

#

i just realized

#

i think it may be a masking problem

thorn wolf
#

it has other shader code, but it is for other stuff

#

i just set the img itself to the dither mask and it worked

#

now i just need to find out why

thorn wolf
#

i can just set the mat to a 1x1 black img, but that feels jank

thorn wolf
#

oh nvm