mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Fix 3D texture visualisation for GL
This commit is contained in:
@@ -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