You can access the attribute positions from the vertex shader and have a varying variable that’s shared between fragment and vertex. Maybe post your glsl code so we can have a look? Also, this thread might be of interest to you.
You can access the attribute positions from the vertex shader and have a varying variable that’s shared between fragment and vertex. Maybe post your glsl code so we can have a look? Also, this thread might be of interest to you.