mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 13:21:45 +00:00
Fix 3D texture visualisation for GL
This commit is contained in:
1 parent
ed3c50db87
commit
fff6cba6db
1 file changed
+1
-1
@@ -342,7 +342,7 @@ vec4 SampleTextureFloat4(vec2 pos, int type, bool flipY, int mipLevel, float sli
|
||||
if (flipY)
|
||||
pos.y = size.y - pos.y;
|
||||
|
||||
col = textureLod(tex3D, vec3(pos / size.xy, slice), float(mipLevel));
|
||||
col = textureLod(tex3D, vec3(pos / size.xy, slice / size.z), float(mipLevel));
|
||||
}
|
||||
else if (type == RESTYPE_TEXCUBE)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user