PBRCustomMaterial and MirrorTexture

Hi~
I create a water pbrCustomMaterial (port from unity)


It look nice, but when I add a mirror to it, the reflection looks too clean, it is not influenced by normal.
image
I use this code to set normal I calculated into pbr(not use pbr bump texture):

this._pbr.CustomParts.Fragment_Custom_Alpha = `
            normalW = data.worldNormal;
            `

What’s wrong?
It seems that mirror reflection texture uses plane’s normal directly?

1 Like

You should put a repro in the playground to help @nasimiasl understand what could be wrong ?

2 Likes

i think do it before :slight_smile: that is not simple let me find the code

1 Like

@Moriy you make play Ground for that i search from my old commit for find it

2 Likes