Skip to content
Snippets Groups Projects
Commit c1060e93 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

In common_vert.glsl, renamed fragTexCoords to fragDisplayCoords, as I

realised that they don't actually get used for texture lookup.
parent 253ab4c3
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,9 @@ attribute vec2 worldCoords;
uniform float zCoord;
/*
* Image texture coordinates passed through to fragment shader.
* Vertex display coordinates passed through to fragment shader.
*/
varying vec3 fragTexCoords;
varying vec3 fragDisplayCoords;
/*
* Image voxel coordinates corresponding to this vertex.
......@@ -78,7 +78,7 @@ void common_vert(void) {
* Pass the vertex coordinates as texture
* coordinates to the fragment shader
*/
fragTexCoords = worldLoc.xyz;
fragDisplayCoords = worldLoc.xyz;
/* Transform the vertex coordinates to display space */
gl_Position = gl_ModelViewProjectionMatrix * worldToWorldMat * worldLoc;
......
......@@ -32,9 +32,9 @@ uniform vec3 imageShape;
uniform bool useSpline;
/*
* Image texture coordinates.
* Image display coordinates.
*/
varying vec3 fragTexCoords;
varying vec3 fragDisplayCoords;
/*
* Image voxel coordinates
......
......@@ -34,9 +34,9 @@ uniform bool useSpline;
uniform mat4 voxValXform;
/*
* Image texture coordinates.
* Image display coordinates.
*/
varying vec3 fragTexCoords;
varying vec3 fragDisplayCoords;
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment