Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing triplanar mapping, but the texture is basically "following" the camera. So either the world-position or world-normal is changing with the view matrix.
I am not sure if thats the reason for it, but I can't use the
getUserWorldPosition()
function, and had to resort togetWorldOffset()
orgetWorldPosition()
. The Filament version is 1.31.2.Compiling the shader with
getWorldPosition()
results inMy shader code looks like this:
Thanks in advance for your help!
Edit: I just read in the material guide that the world pos is shifted by the view pos, so thats the reason for the textures following. Does anyone know why I cant use the
getUserWorldPosition
function?Beta Was this translation helpful? Give feedback.
All reactions