I'm using the 'pbr-metal-roud-with-alpha-blending' shader in substance painter 1 and i want to use an opacity map to make gemstones slightly see-through and also to give the border of my fur clothing a more natural feel to it. I quickly made this just to test and i'm having some issues with it:
For some reason when i rotate my camera the opacity map doesn't work anymore and turns into an alpha based one. As for my gemstones i can't even get them to use opacity, it's either completely visible or completely invisible. Any reason for this?
I tested it on 'Hans' aswel and it works there.
Replies
I'm not sure it will work great for the gemstones, but it will definitely work much better for the fur.
I read the comments on the substance share page and some guy had the exact same problem and solved it by doing this:
"@Froyok, had to rewrite the matrix as one dimensional array and it worked, thanks for the shader! Maybe for compability you shouldn't use multidimensional arrays?"
I have no clue how to do this however, perhaps you do?
[GenericMaterial] FS Shader parameters/states log:
[GenericMaterial] ------------------
[GenericMaterial] File index:
[GenericMaterial] 0: shader-skeleton.frag.glsl
[GenericMaterial] 1: shader-common.frag.glsl
[GenericMaterial] 2: lib-utils.glsl
[GenericMaterial] 3: pbr-alpha-test-dithering.glsl
[GenericMaterial] 4: lib-sampler.glsl
[GenericMaterial] 5: lib-defines.glsl
[GenericMaterial] 6: lib-pbr.glsl
[GenericMaterial] 7: lib-env.glsl
[GenericMaterial] 8: lib-normal.glsl
[GenericMaterial] 9: lib-random.glsl
[GenericMaterial] 10: lib-alpha.glsl
[GenericMaterial]
[GenericMaterial] pbr-alpha-test-dithering.glsl:13 | Special comment that is not a 'state', a 'param', or a 'stacks' definition
[GenericMaterial] pbr-alpha-test-dithering.glsl:14 | Special comment that is not a 'state', a 'param', or a 'stacks' definition
[GenericMaterial] pbr-alpha-test-dithering.glsl:15 | Special comment that is not a 'state', a 'param', or a 'stacks' definition
[GenericMaterial] Auto params infos:
[GenericMaterial] ------------------
[GenericMaterial] The uniform 'dither[0][0]' will never be set.
[GenericMaterial] The uniform 'dither[1][0]' will never be set.
[GenericMaterial] The uniform 'dither[2][0]' will never be set.
[GenericMaterial] The uniform 'dither[3][0]' will never be set.
[GenericMaterial] The uniform 'dither[4][0]' will never be set.
[GenericMaterial] The uniform 'dither[5][0]' will never be set.
[GenericMaterial] The uniform 'dither[6][0]' will never be set.
[GenericMaterial] The uniform 'dither[7][0]' will never be set.
[GenericMaterial] Creation of the shader pbr-alpha-test-dithering failed
This