Front-end: Fix: Cubemap arrays only use 3-component coord when accessed as an image.
4 components are needed when used a texture, but not an image, which multiplies layers and faces into the same coordinate. This fixes it from using 4 everywhere, to only using 4 for textures and 3 for images.
This commit is contained in:
parent
3cd0024ea8
commit
6373574b13
6 changed files with 940 additions and 833 deletions
|
|
@ -51,8 +51,8 @@ void main()
|
|||
imageStore(i3D, ic3D, v);
|
||||
v += imageLoad(iCube, ic3D);
|
||||
imageStore(iCube, ic3D, v);
|
||||
v += imageLoad(iCubeArray, ic4D);
|
||||
imageStore(iCubeArray, ic4D, v);
|
||||
v += imageLoad(iCubeArray, ic3D);
|
||||
imageStore(iCubeArray, ic3D, v);
|
||||
v += imageLoad(i2DRect, ic2D);
|
||||
imageStore(i2DRect, ic2D, v);
|
||||
v += imageLoad(i1DArray, ic2D);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue