Quantcast
Channel: AMD Developer Forums: Message List - OpenGL & Vulkan
Viewing all articles
Browse latest Browse all 631

Re: textureProj() and textureProjOffset() not working using latest HD 5800 driver

$
0
0

hi marcus,

 

i tested following FS with HD5850 & catalyst 14.12,

again, no error generated.

 

// fragment shader

#version 440 compatibility

 

uniform sampler2DShadow s_texture_1;

uniform mat4 BiasMatrix;

uniform mat4 ShadowViewProj;

in vec4 worldPos;

out vec4 s_frag_color;

 

void main()

{

    vec4 shadowCoord = BiasMatrix * ShadowViewProj * worldPos;

  float v1 = textureProj(s_texture_1, shadowCoord);

  v1 += textureProjOffset(s_texture_1, shadowCoord, ivec2(1, 1));

  s_frag_color = vec4(v1);

}

// end of fragment shader

 

so, could you check again?

 

regards

davy


Viewing all articles
Browse latest Browse all 631

Trending Articles