Commit d03f9bfe authored by reichenbach's avatar reichenbach
Browse files

[FIX] fixed isolines position when qform is enabled

parent 7d3850bb
...@@ -83,10 +83,7 @@ uniform float u_resolution; // could be calculated from gl_TexCoord[1], but for ...@@ -83,10 +83,7 @@ uniform float u_resolution; // could be calculated from gl_TexCoord[1], but for
vec3 textPos( vec3 p ) vec3 textPos( vec3 p )
{ {
// compute texture coordinates from worldspace coordinates for texture access // compute texture coordinates from worldspace coordinates for texture access
vec3 texturePosition = ( u_WorldTransform * vec4( p, 1.0 ) ).xyz; vec3 texturePosition = ( gl_TextureMatrix[ 0 ] * u_WorldTransform * vec4( p, 1.0 ) ).xyz;
texturePosition.x /= u_scalarDataSizeX;
texturePosition.y /= u_scalarDataSizeY;
texturePosition.z /= u_scalarDataSizeZ;
return texturePosition; return texturePosition;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment