#Cannot extract blur ui shader from shade graph samples

1 messages · Page 1 of 1 (latest)

solemn prawn
#

can some extract this shader? Assets/Samples/Shader Graph/17.2.0/UGUI Shaders/Examples/Backgrounds/Blurred Hexagon.shadergraph If i take it out and delete the samples folder it doesnt work

#

I keep gettin this

Shader error in 'Shader Graphs/Master': Couldn't open include file 'Assets/Samples/Shader Graph/17.2.0/UGUI Shaders/Subgraphs/Helpers/SafeHDSceneColor.hlsl'. at /(273)
white marsh
#

If the graph uses an include file (for custom function node) you would need to copy that too. The error shows the path/filename.

solemn prawn
# white marsh If the graph uses an include file (for custom function node) you would need to c...

i have copied it but no matter what i do i get these 5 errors

Shader error in 'Shader Graphs/Master': Couldn't open include file 'Assets/Samples/Shader Graph/17.2.0/UGUI Shaders/Subgraphs/Helpers/SafeHDSceneColor.hlsl'. at /(273)
Shader error in 'Procedural/Helpers/Master': Couldn't open include file 'Assets/Samples/Shader Graph/17.2.0/UGUI Shaders/Subgraphs/Helpers/SafeHDSceneColor.hlsl'. at /(161)
Shader error in 'Procedural/Helpers/Master': Couldn't open include file 'Assets/Samples/Shader Graph/17.2.0/UGUI Shaders/Subgraphs/Helpers/SafeHDSceneColor.hlsl'. at /(161)
Shader error in 'Shader Graphs/Master': Couldn't open include file 'Assets/Samples/Shader Graph/17.2.0/UGUI Shaders/Subgraphs/Helpers/SafeHDSceneColor.hlsl'. at /(273)
Shader error in 'Procedural/Helpers/Master': Couldn't open include file 'Assets/Samples/Shader Graph/17.2.0/UGUI Shaders/Subgraphs/Helpers/SafeHDSceneColor.hlsl'. at /(161)
#

it seems to be consisted of three files, the main graph, the subgraph and the hlsl, but if i take them out of the folder i get this. also if i delete the samples it stops working

white marsh
# solemn prawn i have copied it but no matter what i do i get these 5 errors ``` Shader error i...

You may need to copy the .meta files associated with those too, or it'll regenerate with a new guids and not know how to connect them.

Or open the Scene Color Blurred subgraph, reassign the .hlsl file to the "SafeHDSceneColor (Custom Function)" node (under Node Settings tab, while that node is selected). Save that then open the main graph, replace the subgraph node if it shows a warning on it and resave that.

solemn prawn
#

it randomly decided to work although i didnt do anything different

#

unfortunately the masking of the image component doesnt work because of the custom shader, any idea how to fix it?

#

im using a circle sliced mask for rounded corners

white marsh
#

If the shader uses the _MainTex property it should be able to obtain the sprite/UI image texture

solemn prawn
#

can i fix it through a setting? i dont dare edit the graph

glacial swallow
#

UI masking requires alpha clipping
Not sure but could be related