SPV: Fix an issue related with using CubeArrayShadow for texture()
This commit is contained in:
@@ -5,6 +5,7 @@ uniform sampler2DRect sr;
|
||||
uniform sampler3D s3D;
|
||||
uniform samplerCube sCube;
|
||||
uniform samplerCubeShadow sCubeShadow;
|
||||
uniform samplerCubeArrayShadow sCubeArrayShadow;
|
||||
uniform sampler2DShadow s2DShadow;
|
||||
uniform sampler2DArray s2DArray;
|
||||
uniform sampler2DArrayShadow s2DArrayShadow;
|
||||
@@ -35,6 +36,7 @@ out vec4 FragData;
|
||||
void main()
|
||||
{
|
||||
vec4 v = texture(s2D, c2D);
|
||||
v.y += texture(sCubeArrayShadow, c4D, c1D);
|
||||
v += textureProj(s3D, c4D);
|
||||
v += textureLod(s2DArray, c3D, 1.2);
|
||||
v.y += textureOffset(s2DShadow, c3D, ivec2(3), c1D);
|
||||
|
||||
Reference in New Issue
Block a user